forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3138 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
9647012ec7
commit
9adb7fae0b
|
@ -103,6 +103,8 @@ FixDeform::FixDeform(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg)
|
|||
if (iarg+3 > narg) error->all("Illegal fix deform command");
|
||||
set[index].style = TRATE;
|
||||
set[index].rate = atof(arg[iarg+2]);
|
||||
if (set[index].rate <= -1.0)
|
||||
error->all("Fix deform trate must be > -1.0");
|
||||
iarg += 3;
|
||||
} else if (strcmp(arg[iarg+1],"volume") == 0) {
|
||||
set[index].style = VOLUME;
|
||||
|
@ -152,6 +154,8 @@ FixDeform::FixDeform(LAMMPS *lmp, int narg, char **arg) : Fix(lmp, narg, arg)
|
|||
if (iarg+3 > narg) error->all("Illegal fix deform command");
|
||||
set[index].style = TRATE;
|
||||
set[index].rate = atof(arg[iarg+2]);
|
||||
if (set[index].rate <= -1.0)
|
||||
error->all("Fix deform trate must be > -1.0");
|
||||
iarg += 3;
|
||||
} else if (strcmp(arg[iarg+1],"wiggle") == 0) {
|
||||
if (iarg+4 > narg) error->all("Illegal fix deform command");
|
||||
|
|
Loading…
Reference in New Issue