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

@ -177,7 +177,7 @@ void PairBorn::settings(int narg, char **arg)
{
if (narg != 1) error->all(FLERR,"Illegal pair_style command");
cut_global = force->numeric(FLERR,arg[0]);
cut_global = utils::numeric(FLERR,arg[0],false,lmp);
// reset cutoffs that have been explicitly set
@ -202,15 +202,15 @@ void PairBorn::coeff(int narg, char **arg)
utils::bounds(FLERR,arg[0],1,atom->ntypes,ilo,ihi,error);
utils::bounds(FLERR,arg[1],1,atom->ntypes,jlo,jhi,error);
double a_one = force->numeric(FLERR,arg[2]);
double rho_one = force->numeric(FLERR,arg[3]);
double sigma_one = force->numeric(FLERR,arg[4]);
double a_one = utils::numeric(FLERR,arg[2],false,lmp);
double rho_one = utils::numeric(FLERR,arg[3],false,lmp);
double sigma_one = utils::numeric(FLERR,arg[4],false,lmp);
if (rho_one <= 0) error->all(FLERR,"Incorrect args for pair coefficients");
double c_one = force->numeric(FLERR,arg[5]);
double d_one = force->numeric(FLERR,arg[6]);
double c_one = utils::numeric(FLERR,arg[5],false,lmp);
double d_one = utils::numeric(FLERR,arg[6],false,lmp);
double cut_one = cut_global;
if (narg == 8) cut_one = force->numeric(FLERR,arg[7]);
if (narg == 8) cut_one = utils::numeric(FLERR,arg[7],false,lmp);
int count = 0;
for (int i = ilo; i <= ihi; i++) {