Skip to content
Snippets Groups Projects
Commit 4c69bbcf authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

apply rigid body check to displace_atoms command

parent 3a018363
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment