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

This commit is contained in:
sjplimp
2015-05-15 16:51:23 +00:00
parent 1bdd915a90
commit 6106843d57
13 changed files with 58 additions and 8 deletions

View File

@ -71,9 +71,10 @@ void FixNVELimit::init()
// warn if using fix shake, which will lead to invalid constraint forces
for (int i = 0; i < modify->nfix; i++)
if (strcmp(modify->fix[i]->style,"shake") == 0) {
if ((strcmp(modify->fix[i]->style,"shake") == 0)
|| (strcmp(modify->fix[i]->style,"rattle") == 0)) {
if (comm->me == 0)
error->warning(FLERR,"Should not use fix nve/limit with fix shake");
error->warning(FLERR,"Should not use fix nve/limit with fix shake or fix rattle");
}
}