Fix force calculation time in LAMMPS variant
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
parent
887f41871c
commit
5df544637f
@ -9,3 +9,4 @@ v_out_freq 5
|
||||
cutforce 0.9
|
||||
reneigh_every 100
|
||||
nstat 125000
|
||||
half_neigh 0
|
||||
|
@ -258,9 +258,9 @@ int main(int argc, char** argv) {
|
||||
timer[FORCE] += computeForceEam(&eam, ¶m, &atom, &neighbor, &stats);
|
||||
} else {
|
||||
if(param.half_neigh) {
|
||||
timer[FORCE] = computeForceLJHalfNeigh(¶m, &atom, &neighbor, &stats);
|
||||
timer[FORCE] += computeForceLJHalfNeigh(¶m, &atom, &neighbor, &stats);
|
||||
} else {
|
||||
timer[FORCE] = computeForceLJFullNeigh(¶m, &atom, &neighbor, &stats);
|
||||
timer[FORCE] += computeForceLJFullNeigh(¶m, &atom, &neighbor, &stats);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user