X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=potentials%2Falbe_fast.c;fp=potentials%2Falbe_fast.c;h=4523938ba271e4d5de6e899ac0b892e4d014688c;hb=e3e1d8e2f7fc65748c8da0accb9b3e6b0b1eb049;hp=6331064eb63b2f217470214b2024256cc5458acd;hpb=a198ee2eb93c0f14bdaea14722f4d98e5890935f;p=physik%2Fposic.git diff --git a/potentials/albe_fast.c b/potentials/albe_fast.c index 6331064..4523938 100644 --- a/potentials/albe_fast.c +++ b/potentials/albe_fast.c @@ -171,7 +171,7 @@ int albe_potential_force_calc(t_moldyn *moldyn) { #ifdef STATIC_LISTS p=0; - while(neighbour_i[j][p]!=0) { + while(neighbour_i[j][p]!=-1) { jtom=&(atom[neighbour_i[j][p]]); p++; @@ -236,7 +236,7 @@ int albe_potential_force_calc(t_moldyn *moldyn) { #ifdef STATIC_LISTS q=0; - while(neighbour_i[j][q]!=0) { + while(neighbour_i[k][q]!=-1) { ktom=&(atom[neighbour_i[k][q]]); q++; @@ -466,7 +466,7 @@ if(moldyn->time>DSTART&&moldyn->time