git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10160 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
#include "input.h"
|
||||
#include "variable.h"
|
||||
#include "error.h"
|
||||
#include "force.h"
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
using namespace FixConst;
|
||||
@ -51,7 +52,7 @@ FixAveForce::FixAveForce(LAMMPS *lmp, int narg, char **arg) :
|
||||
} else if (strcmp(arg[3],"NULL") == 0) {
|
||||
xstyle = NONE;
|
||||
} else {
|
||||
xvalue = atof(arg[3]);
|
||||
xvalue = force->numeric(FLERR,arg[3]);
|
||||
xstyle = CONSTANT;
|
||||
}
|
||||
if (strstr(arg[4],"v_") == arg[4]) {
|
||||
@ -61,7 +62,7 @@ FixAveForce::FixAveForce(LAMMPS *lmp, int narg, char **arg) :
|
||||
} else if (strcmp(arg[4],"NULL") == 0) {
|
||||
ystyle = NONE;
|
||||
} else {
|
||||
yvalue = atof(arg[4]);
|
||||
yvalue = force->numeric(FLERR,arg[4]);
|
||||
ystyle = CONSTANT;
|
||||
}
|
||||
if (strstr(arg[5],"v_") == arg[5]) {
|
||||
@ -71,7 +72,7 @@ FixAveForce::FixAveForce(LAMMPS *lmp, int narg, char **arg) :
|
||||
} else if (strcmp(arg[5],"NULL") == 0) {
|
||||
zstyle = NONE;
|
||||
} else {
|
||||
zvalue = atof(arg[5]);
|
||||
zvalue = force->numeric(FLERR,arg[5]);
|
||||
zstyle = CONSTANT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user