forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10224 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
496ea3faa2
commit
b13ebf5889
|
@ -406,17 +406,17 @@ void DeleteAtoms::options(int narg, char **arg)
|
|||
int iarg = 0;
|
||||
while (iarg < narg) {
|
||||
if (strcmp(arg[iarg],"compress") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal delete_bonds command");
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal delete_atoms command");
|
||||
if (strcmp(arg[iarg+1],"yes") == 0) compress_flag = 1;
|
||||
else if (strcmp(arg[iarg+1],"no") == 0) compress_flag = 0;
|
||||
else error->all(FLERR,"Illegal delete_bonds command");
|
||||
else error->all(FLERR,"Illegal delete_atoms command");
|
||||
iarg += 2;
|
||||
} else if (strcmp(arg[iarg],"mol") == 0) {
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal delete_bonds command");
|
||||
if (iarg+2 > narg) error->all(FLERR,"Illegal delete_atoms command");
|
||||
if (strcmp(arg[iarg+1],"yes") == 0) mol_flag = 1;
|
||||
else if (strcmp(arg[iarg+1],"no") == 0) mol_flag = 0;
|
||||
else error->all(FLERR,"Illegal delete_bonds command");
|
||||
else error->all(FLERR,"Illegal delete_atoms command");
|
||||
iarg += 2;
|
||||
} else error->all(FLERR,"Illegal delete_bonds command");
|
||||
} else error->all(FLERR,"Illegal delete_atoms command");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue