complete region handling refactor

This commit is contained in:
Axel Kohlmeyer
2022-04-16 00:12:43 -04:00
parent cbb4abc55c
commit aa4787f604
39 changed files with 1504 additions and 1664 deletions

View File

@ -229,12 +229,11 @@ void PRD::command(int narg, char **arg)
// cannot use PRD with time-dependent fixes or regions
for (int i = 0; i < modify->nfix; i++)
if (modify->fix[i]->time_depend)
error->all(FLERR,"Cannot use PRD with a time-dependent fix defined");
for (auto ifix : modify->get_fix_list())
if (ifix->time_depend) error->all(FLERR,"Cannot use PRD with a time-dependent fix defined");
for (int i = 0; i < domain->nregion; i++)
if (domain->regions[i]->dynamic_check())
for (auto reg : domain->get_region_list())
if (reg->dynamic_check())
error->all(FLERR,"Cannot use PRD with a time-dependent region defined");
// perform PRD simulation