Fix force calculation time in LAMMPS variant
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user