git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@443 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2007-03-27 16:45:29 +00:00
parent 02b13d82d1
commit 610099ab06

View File

@ -277,6 +277,12 @@ void FixShake::init()
if (strcmp(modify->fix[i]->style,"shake") == 0) count++;
if (count > 1) error->all("More than one shake fix");
// cannot use with minimization since SHAKE turns off bonds
// that should contribute to potential energy
if (update->whichflag == 1)
error->all("Fix shake cannot be used with minimization");
// error if npt,nph fix comes before shake fix
for (i = 0; i < modify->nfix; i++) {