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

@ -42,14 +42,14 @@ FixDrag::FixDrag(LAMMPS *lmp, int narg, char **arg) :
xflag = yflag = zflag = 1;
if (strcmp(arg[3],"NULL") == 0) xflag = 0;
else xc = force->numeric(FLERR,arg[3]);
else xc = utils::numeric(FLERR,arg[3],false,lmp);
if (strcmp(arg[4],"NULL") == 0) yflag = 0;
else yc = force->numeric(FLERR,arg[4]);
else yc = utils::numeric(FLERR,arg[4],false,lmp);
if (strcmp(arg[5],"NULL") == 0) zflag = 0;
else zc = force->numeric(FLERR,arg[5]);
else zc = utils::numeric(FLERR,arg[5],false,lmp);
f_mag = force->numeric(FLERR,arg[6]);
delta = force->numeric(FLERR,arg[7]);
f_mag = utils::numeric(FLERR,arg[6],false,lmp);
delta = utils::numeric(FLERR,arg[7],false,lmp);
force_flag = 0;
ftotal[0] = ftotal[1] = ftotal[2] = 0.0;