git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10160 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
#include "respa.h"
|
||||
#include "domain.h"
|
||||
#include "error.h"
|
||||
#include "force.h"
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
using namespace FixConst;
|
||||
@ -39,14 +40,14 @@ FixDrag::FixDrag(LAMMPS *lmp, int narg, char **arg) :
|
||||
xflag = yflag = zflag = 1;
|
||||
|
||||
if (strcmp(arg[3],"NULL") == 0) xflag = 0;
|
||||
else xc = atof(arg[3]);
|
||||
else xc = force->numeric(FLERR,arg[3]);
|
||||
if (strcmp(arg[4],"NULL") == 0) yflag = 0;
|
||||
else yc = atof(arg[4]);
|
||||
else yc = force->numeric(FLERR,arg[4]);
|
||||
if (strcmp(arg[5],"NULL") == 0) zflag = 0;
|
||||
else zc = atof(arg[5]);
|
||||
else zc = force->numeric(FLERR,arg[5]);
|
||||
|
||||
f_mag = atof(arg[6]);
|
||||
delta = atof(arg[7]);
|
||||
f_mag = force->numeric(FLERR,arg[6]);
|
||||
delta = force->numeric(FLERR,arg[7]);
|
||||
|
||||
force_flag = 0;
|
||||
ftotal[0] = ftotal[1] = ftotal[2] = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user