git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13467 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user