Restricting options in fix wall/gran

This commit is contained in:
jtclemm
2024-09-25 15:49:32 -06:00
parent 2c2eb31362
commit 3a53b01ed9

View File

@ -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