more use of modernized APIs

This commit is contained in:
Axel Kohlmeyer
2022-03-16 15:24:42 -04:00
parent 7e2fef096f
commit 6d070c7043
12 changed files with 117 additions and 156 deletions

View File

@ -67,15 +67,11 @@ void ComputeTempDeform::init()
// check fix deform remap settings
for (i = 0; i < modify->nfix; i++)
if (utils::strmatch(modify->fix[i]->style, "^deform")) {
if (((FixDeform *) modify->fix[i])->remapflag == Domain::X_REMAP && comm->me == 0)
error->warning(FLERR,
"Using compute temp/deform with inconsistent fix deform remap option");
break;
}
if (i == modify->nfix && comm->me == 0)
error->warning(FLERR, "Using compute temp/deform with no fix deform defined");
auto fixes = modify->get_fix_by_style("^deform");
if (fixes.size() > 0) {
if (((FixDeform *) fixes[0])->remapflag == Domain::X_REMAP && comm->me == 0)
error->warning(FLERR, "Using compute temp/deform with inconsistent fix deform remap option");
} else error->warning(FLERR, "Using compute temp/deform with no fix deform defined");
}
/* ---------------------------------------------------------------------- */