From e5f496698656551b422a4ea1a6d6246fac833d8a Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 11 Sep 2013 00:05:07 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10760 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_property_atom.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fix_property_atom.cpp b/src/fix_property_atom.cpp index fa7a51fab0..ee05a91b73 100644 --- a/src/fix_property_atom.cpp +++ b/src/fix_property_atom.cpp @@ -159,6 +159,10 @@ void FixPropertyAtom::read_data_section(char *keyword, int n, char *buf) int j,m,tagdata; char *next; + if (atom->map_style == 0) + error->all(FLERR,"Fix property/atom cannot read from data file " + "unless an atom map is defined"); + next = strchr(buf,'\n'); *next = '\0'; int nwords = atom->count_words(buf);