replace calls to force->*numeric() with the corresponding utils::*numeric()
this also removes the now obsolete functions from Force
This commit is contained in:
@ -55,10 +55,10 @@ ComputeEntropyAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
// local is optional and allows using the local density to normalize
|
||||
// the g(r)
|
||||
|
||||
sigma = force->numeric(FLERR,arg[3]);
|
||||
sigma = utils::numeric(FLERR,arg[3],false,lmp);
|
||||
if (sigma <= 0.0) error->all(FLERR,"Illegal compute entropy/atom"
|
||||
" command; sigma must be positive");
|
||||
cutoff = force->numeric(FLERR,arg[4]);
|
||||
cutoff = utils::numeric(FLERR,arg[4],false,lmp);
|
||||
if (cutoff <= 0.0) error->all(FLERR,"Illegal compute entropy/atom"
|
||||
" command; cutoff must be positive");
|
||||
|
||||
@ -77,7 +77,7 @@ ComputeEntropyAtom(LAMMPS *lmp, int narg, char **arg) :
|
||||
else if (strcmp(arg[iarg+1],"no") == 0) avg_flag = 0;
|
||||
else error->all(FLERR,"Illegal compute entropy/atom;"
|
||||
" argument after avg should be yes or no");
|
||||
cutoff2 = force->numeric(FLERR,arg[iarg+2]);
|
||||
cutoff2 = utils::numeric(FLERR,arg[iarg+2],false,lmp);
|
||||
if (cutoff2 < 0.0) error->all(FLERR,"Illegal compute entropy/atom"
|
||||
" command; negative cutoff2");
|
||||
cutsq2 = cutoff2*cutoff2;
|
||||
|
||||
Reference in New Issue
Block a user