- link_cell_neighbour_index(moldyn,
- (btom->r.x+moldyn->dim.x/2)/lc->x,
- (btom->r.y+moldyn->dim.y/2)/lc->y,
- (btom->r.z+moldyn->dim.z/2)/lc->z,
- neighbourk);
-
- for(k=0;k<lc->countn;k++) {
-
- thisk=&(neighbourk[k]);
- list_reset(thisk);
+ /*
+ * according to mr. nordlund, we dont need to take the
+ * sum over all atoms now, as 'this is centered' around
+ * atom i ...
+ * i am not quite sure though! there is a not vanishing
+ * part even if f_c_ik is zero ...
+ * this analytical potentials suck!
+ * switching from mc to md to dft soon!
+ */
+
+ // link_cell_neighbour_index(moldyn,
+ // (jtom->r.x+moldyn->dim.x/2)/lc->x,
+ // (jtom->r.y+moldyn->dim.y/2)/lc->y,
+ // (jtom->r.z+moldyn->dim.z/2)/lc->z,
+ // neighbour_j);
+
+// /* neighbours of j */
+// for(k=0;k<lc->countn;k++) {
+//
+// that=&(neighbour_j[k]);
+// list_reset(that);
+//
+// if(that->start==NULL)
+// continue;
+//
+// bc_ijk=(k<lc->dnlc)?0:1;
+//
+// do {
+//
+// ktom=that->current->data;
+//
+// if(!(ktom->attr&ATOM_ATTR_3BP))
+// continue;
+//
+// if(ktom==jtom)
+// continue;
+//
+// if(ktom==&(itom[i]))
+// continue;
+//
+// moldyn->func3b(moldyn,&(itom[i]),jtom,ktom,bc_ijk);
+//
+/* } while(list_next(that)!=\ */
+// L_NO_NEXT_ELEMENT);
+//
+// }
+
+ /* copy the neighbour lists */
+ memcpy(neighbour_i2,neighbour_i,
+ 27*sizeof(t_list));
+
+ /* get neighbours of i */
+ for(k=0;k<countn;k++) {
+
+ that=&(neighbour_i2[k]);
+ list_reset(that);