apply test for overlap with rigid bodies to set and velocity command
This commit is contained in:
@ -68,6 +68,12 @@ void Velocity::command(int narg, char **arg)
|
||||
if (igroup == -1) error->all(FLERR,"Could not find velocity group ID");
|
||||
groupbit = group->bitmask[igroup];
|
||||
|
||||
// check if velocities of atoms in rigid bodies are updated
|
||||
|
||||
if (modify->check_rigid_group_overlap(groupbit))
|
||||
error->warning(FLERR,"Changing velocities of atoms in rigid bodies. "
|
||||
"This has no effect unless rigid bodies are rebuild");
|
||||
|
||||
// identify style
|
||||
|
||||
if (strcmp(arg[1],"create") == 0) style = CREATE;
|
||||
|
||||
Reference in New Issue
Block a user