Skip to content

Commit

Permalink
min_image fix; Saves long simulations from crashing; Addresses https:…
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyachenkoYA authored and jhenin committed Dec 16, 2024
1 parent 3731ae6 commit 78edc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lammps/src/COLVARS/colvarproxy_lammps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ cvm::rvector colvarproxy_lammps::position_distance(cvm::atom_pos const &pos1,
double xtmp = pos2.x - pos1.x;
double ytmp = pos2.y - pos1.y;
double ztmp = pos2.z - pos1.z;
_lmp->domain->minimum_image(xtmp,ytmp,ztmp);
_lmp->domain->minimum_image_big(xtmp,ytmp,ztmp);
return {xtmp, ytmp, ztmp};
}

Expand Down

0 comments on commit 78edc86

Please sign in to comment.