forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4352 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
8ec83a8bf2
commit
5e21c93a0b
|
@ -53,8 +53,8 @@ FixEfield::FixEfield(LAMMPS *lmp, int narg, char **arg) :
|
||||||
|
|
||||||
if (strstr(arg[4],"v_") == arg[4]) {
|
if (strstr(arg[4],"v_") == arg[4]) {
|
||||||
int n = strlen(&arg[4][2]) + 1;
|
int n = strlen(&arg[4][2]) + 1;
|
||||||
xstr = new char[n];
|
ystr = new char[n];
|
||||||
strcpy(xstr,&arg[4][2]);
|
strcpy(ystr,&arg[4][2]);
|
||||||
} else {
|
} else {
|
||||||
ey = efactor * atof(arg[4]);
|
ey = efactor * atof(arg[4]);
|
||||||
ystyle = CONSTANT;
|
ystyle = CONSTANT;
|
||||||
|
@ -62,8 +62,8 @@ FixEfield::FixEfield(LAMMPS *lmp, int narg, char **arg) :
|
||||||
|
|
||||||
if (strstr(arg[5],"v_") == arg[5]) {
|
if (strstr(arg[5],"v_") == arg[5]) {
|
||||||
int n = strlen(&arg[5][2]) + 1;
|
int n = strlen(&arg[5][2]) + 1;
|
||||||
xstr = new char[n];
|
zstr = new char[n];
|
||||||
strcpy(xstr,&arg[5][2]);
|
strcpy(zstr,&arg[5][2]);
|
||||||
} else {
|
} else {
|
||||||
ez = efactor * atof(arg[5]);
|
ez = efactor * atof(arg[5]);
|
||||||
zstyle = CONSTANT;
|
zstyle = CONSTANT;
|
||||||
|
|
Loading…
Reference in New Issue