replace calls to force->*numeric() with the corresponding utils::*numeric()

this also removes the now obsolete functions from Force
This commit is contained in:
Axel Kohlmeyer
2020-08-29 19:32:03 -04:00
parent 27b4e93bf5
commit 96d8d12a88
506 changed files with 3042 additions and 3135 deletions

View File

@ -270,7 +270,7 @@ void DeleteAtoms::delete_overlap(int narg, char **arg)
// read args
double cut = force->numeric(FLERR,arg[1]);
double cut = utils::numeric(FLERR,arg[1],false,lmp);
double cutsq = cut*cut;
int igroup1 = group->find(arg[2]);
@ -430,8 +430,8 @@ void DeleteAtoms::delete_porosity(int narg, char **arg)
if (iregion == -1) error->all(FLERR,"Could not find delete_atoms region ID");
domain->regions[iregion]->prematch();
double porosity_fraction = force->numeric(FLERR,arg[2]);
int seed = force->inumeric(FLERR,arg[3]);
double porosity_fraction = utils::numeric(FLERR,arg[2],false,lmp);
int seed = utils::inumeric(FLERR,arg[3],false,lmp);
options(narg-4,&arg[4]);
RanMars *random = new RanMars(lmp,seed + comm->me);