Skip to content

Commit 151869f

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 42903c7 commit 151869f

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
@@ -205,7 +205,7 @@ cvm::rvector colvarproxy_lammps::position_distance(cvm::atom_pos const &pos1,
205205
double xtmp = pos2.x - pos1.x;
206206
double ytmp = pos2.y - pos1.y;
207207
double ztmp = pos2.z - pos1.z;
208-
_lmp->domain->minimum_image(xtmp,ytmp,ztmp);
208+
_lmp->domain->minimum_image_big(xtmp,ytmp,ztmp);
209209
return {xtmp, ytmp, ztmp};
210210
}
211211

0 commit comments

Comments
 (0)