apply rigid body check to displace_atoms command

This commit is contained in:
Axel Kohlmeyer
2017-06-10 11:37:54 -04:00
parent 3a01836325
commit 4c69bbcf5c

View File

@ -75,6 +75,9 @@ void DisplaceAtoms::command(int narg, char **arg)
if (igroup == -1) error->all(FLERR,"Could not find displace_atoms group ID");
groupbit = group->bitmask[igroup];
if (modify->check_rigid_group_overlap(groupbit))
error->warning(FLERR,"Displacing atoms in rigid bodies");
int style = -1;
if (strcmp(arg[1],"move") == 0) style = MOVE;
else if (strcmp(arg[1],"ramp") == 0) style = RAMP;