Restricting options in fix wall/gran
This commit is contained in:
@ -165,6 +165,9 @@ FixWallGran::FixWallGran(LAMMPS *lmp, int narg, char **arg) :
|
||||
wallstyle = REGION;
|
||||
idregion = utils::strdup(arg[iarg+1]);
|
||||
iarg += 2;
|
||||
// This option is only compatible with fix wall/gran/region
|
||||
if (strcmp(style, "wall/gran/region") != 0)
|
||||
error->all(FLERR, "Region option only compatible with fix wall/gran/region");
|
||||
} else wallstyle = NOSTYLE;
|
||||
|
||||
// optional args
|
||||
|
||||
Reference in New Issue
Block a user