diff --git a/src/delete_atoms.cpp b/src/delete_atoms.cpp index f16cc4ce3c..db752d0b2c 100644 --- a/src/delete_atoms.cpp +++ b/src/delete_atoms.cpp @@ -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"); } }