git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13889 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2015-08-18 21:13:14 +00:00
parent 21dd53e50d
commit 916fc0f1cb
11 changed files with 27 additions and 27 deletions

View File

@ -722,9 +722,9 @@ void DeleteAtoms::options(int narg, char **arg)
iarg += 2;
} else if (strcmp(arg[iarg],"mol") == 0) {
if (iarg+2 > narg) error->all(FLERR,"Illegal delete_atoms command");
if (atom->molecular == 0)
error->all(FLERR,"Cannot delete_atoms mol yes for "
"non-molecular systems");
if (atom->molecule_flag == 0)
error->all(FLERR,"Delete_atoms mol yes requires "
"atom attribute molecule");
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_atoms command");