replace calls to force->*numeric() with the corresponding utils::*numeric()
this also removes the now obsolete functions from Force
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user