Skip to content

Commit faadb0c

Browse files
PolyachenkoYAjhenin
authored andcommitted
min_image fix; Saves long simulations from crashing; Addresses https://matsci.org/t/fix-rigid-atoms-have-moved-too-far-apart/53926
1 parent d8b5a7f commit faadb0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lammps/src/COLVARS/colvarproxy_lammps.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ cvm::rvector colvarproxy_lammps::position_distance(cvm::atom_pos const &pos1,
191191
double xtmp = pos2.x - pos1.x;
192192
double ytmp = pos2.y - pos1.y;
193193
double ztmp = pos2.z - pos1.z;
194-
_lmp->domain->minimum_image(xtmp,ytmp,ztmp);
194+
_lmp->domain->minimum_image_big(xtmp,ytmp,ztmp);
195195
return {xtmp, ytmp, ztmp};
196196
}
197197

0 commit comments

Comments
 (0)