forked from lijiext/lammps
Removed invalid arg count check
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9154 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
d629fb522c
commit
5a7e5b3cab
|
@ -150,13 +150,11 @@ void ChangeBox::command(int narg, char **arg)
|
||||||
iarg += 4;
|
iarg += 4;
|
||||||
|
|
||||||
} else if (strcmp(arg[iarg],"ortho") == 0) {
|
} else if (strcmp(arg[iarg],"ortho") == 0) {
|
||||||
if (iarg+1 > narg) error->all(FLERR,"Illegal change_box command");
|
|
||||||
ops[nops].style = ORTHO;
|
ops[nops].style = ORTHO;
|
||||||
nops++;
|
nops++;
|
||||||
iarg += 1;
|
iarg += 1;
|
||||||
|
|
||||||
} else if (strcmp(arg[iarg],"triclinic") == 0) {
|
} else if (strcmp(arg[iarg],"triclinic") == 0) {
|
||||||
if (iarg+1 > narg) error->all(FLERR,"Illegal change_box command");
|
|
||||||
ops[nops].style = TRICLINIC;
|
ops[nops].style = TRICLINIC;
|
||||||
nops++;
|
nops++;
|
||||||
iarg += 1;
|
iarg += 1;
|
||||||
|
@ -168,7 +166,6 @@ void ChangeBox::command(int narg, char **arg)
|
||||||
iarg += 1;
|
iarg += 1;
|
||||||
|
|
||||||
} else if (strcmp(arg[iarg],"remap") == 0) {
|
} else if (strcmp(arg[iarg],"remap") == 0) {
|
||||||
if (iarg+1 > narg) error->all(FLERR,"Illegal change_box command");
|
|
||||||
ops[nops].style = REMAP;
|
ops[nops].style = REMAP;
|
||||||
nops++;
|
nops++;
|
||||||
iarg += 1;
|
iarg += 1;
|
||||||
|
|
Loading…
Reference in New Issue