X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=potentials%2Falbe_fast.c;fp=potentials%2Falbe_fast.c;h=603606e6b9ce081e108f64d7b33f544d009e35d9;hb=815b8841eb76564b2f90421d4eae180253453106;hp=952f1fe41d4dee5e69c816bee96f9906d44228de;hpb=4b18a09781c27d786c32a5ada98929c4c2e38f4b;p=physik%2Fposic.git diff --git a/potentials/albe_fast.c b/potentials/albe_fast.c index 952f1fe..603606e 100644 --- a/potentials/albe_fast.c +++ b/potentials/albe_fast.c @@ -703,7 +703,7 @@ if(moldyn->time>DSTART&&moldyn->timepot_params; + /* get energy, force and virial for atoms */ - /* get energy, force and virial of every atom */ - - /* first (and only) loop over atoms i */ - for(i=0;istart;iend;i++) { if(!(itom[i].attr&ATOM_ATTR_3BP)) - continue; + return 0; link_cell_neighbour_index(moldyn, (itom[i].r.x+moldyn->dim.x/2)/lc->x, @@ -1302,6 +1300,8 @@ if(moldyn->time>DSTART&&moldyn->timetime>DSTART&&moldyn->timef.x,itom->f.y,itom->f.z); if(moldyn->time>DSTART&&moldyn->time %d\n",i); + /* join threads */ + for(j=0;j