Skip to content
Snippets Groups Projects
Commit 5a7e5b3c authored by athomps's avatar athomps
Browse files

Removed invalid arg count check

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9154 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent d629fb52
No related branches found
No related tags found
No related merge requests found
...@@ -150,13 +150,11 @@ void ChangeBox::command(int narg, char **arg) ...@@ -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) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment