From 9beaf33d866b6f1b25ec347e34dc44f48c852474 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Tue, 6 Jan 2015 21:58:58 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12891 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/delete_atoms.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/delete_atoms.cpp b/src/delete_atoms.cpp index 277bd42557..bef20f647a 100644 --- a/src/delete_atoms.cpp +++ b/src/delete_atoms.cpp @@ -701,6 +701,9 @@ void DeleteAtoms::options(int narg, char **arg) if (atom->molecular == 0) error->all(FLERR,"Cannot delete_atoms bond yes for " "non-molecular systems"); + if (atom->molecular == 2) + error->all(FLERR,"Cannot use delete_atoms bond yes with " + "atom_style template"); if (strcmp(arg[iarg+1],"yes") == 0) bond_flag = 1; else if (strcmp(arg[iarg+1],"no") == 0) bond_flag = 0; else error->all(FLERR,"Illegal delete_atoms command");