replace calls to force->*numeric() with the corresponding utils::*numeric()
this also removes the now obsolete functions from Force
This commit is contained in:
@ -68,7 +68,7 @@ DumpCustom::DumpCustom(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
clearstep = 1;
|
||||
|
||||
nevery = force->inumeric(FLERR,arg[3]);
|
||||
nevery = utils::inumeric(FLERR,arg[3],false,lmp);
|
||||
if (nevery <= 0) error->all(FLERR,"Illegal dump custom command");
|
||||
|
||||
// expand args if any have wildcard character "*"
|
||||
@ -1748,7 +1748,7 @@ int DumpCustom::modify_param(int narg, char **arg)
|
||||
strcpy(format_float_user,arg[2]);
|
||||
|
||||
} else {
|
||||
int i = force->inumeric(FLERR,arg[1]) - 1;
|
||||
int i = utils::inumeric(FLERR,arg[1],false,lmp) - 1;
|
||||
if (i < 0 || i >= size_one)
|
||||
error->all(FLERR,"Illegal dump_modify command");
|
||||
if (format_column_user[i]) delete [] format_column_user[i];
|
||||
@ -2060,7 +2060,7 @@ int DumpCustom::modify_param(int narg, char **arg)
|
||||
// id = dump-ID + nthreshlast + DUMP_STORE, fix group = dump group
|
||||
|
||||
if (strcmp(arg[3],"LAST") != 0) {
|
||||
thresh_value[nthresh] = force->numeric(FLERR,arg[3]);
|
||||
thresh_value[nthresh] = utils::numeric(FLERR,arg[3],false,lmp);
|
||||
thresh_last[nthresh] = -1;
|
||||
} else {
|
||||
thresh_fix = (FixStore **)
|
||||
|
||||
Reference in New Issue
Block a user