git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2152 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -44,9 +44,7 @@ FixWallLJ126::FixWallLJ126(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
// set defaults
|
||||
|
||||
vel = 0.0;
|
||||
|
||||
if (strcmp(arg[3],"xlo") == 0) {
|
||||
if (strcmp(arg[3],"xlo") == 0) {
|
||||
dim = 0;
|
||||
side = -1;
|
||||
} else if (strcmp(arg[3],"xhi") == 0) {
|
||||
@ -71,6 +69,10 @@ if (strcmp(arg[3],"xlo") == 0) {
|
||||
sigma = atof(arg[6]);
|
||||
cutoff = atof(arg[7]);
|
||||
|
||||
// read options
|
||||
|
||||
vel = 0.0;
|
||||
|
||||
int iarg = 8;
|
||||
while (iarg < narg) {
|
||||
if (strcmp(arg[iarg],"vel") == 0) {
|
||||
@ -159,7 +161,6 @@ void FixWallLJ126::post_force(int vflag)
|
||||
double delt = (update->ntimestep - update->beginstep) * update->dt;
|
||||
double coord = coord0 + delt*vel;
|
||||
|
||||
|
||||
for (int i = 0; i < nlocal; i++)
|
||||
if (mask[i] & groupbit) {
|
||||
if (side == -1) delta = x[i][dim] - coord;
|
||||
|
||||
@ -40,8 +40,6 @@ FixWallLJ93::FixWallLJ93(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
// set defaults
|
||||
|
||||
vel = 0.0;
|
||||
|
||||
if (strcmp(arg[3],"xlo") == 0) {
|
||||
dim = 0;
|
||||
side = -1;
|
||||
@ -67,6 +65,10 @@ FixWallLJ93::FixWallLJ93(LAMMPS *lmp, int narg, char **arg) :
|
||||
sigma = atof(arg[6]);
|
||||
cutoff = atof(arg[7]);
|
||||
|
||||
// read options
|
||||
|
||||
vel = 0.0;
|
||||
|
||||
int iarg = 8;
|
||||
while (iarg < narg) {
|
||||
if (strcmp(arg[iarg],"vel") == 0) {
|
||||
|
||||
Reference in New Issue
Block a user