From 9127ac0d5ba704b57d9ea7444c687ae0ad6cf1dd Mon Sep 17 00:00:00 2001 From: sjplimp Date: Wed, 1 Apr 2015 20:52:33 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13357 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_property_atom.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/fix_property_atom.cpp b/src/fix_property_atom.cpp index 5668b62aaa..482c57c8a2 100644 --- a/src/fix_property_atom.cpp +++ b/src/fix_property_atom.cpp @@ -15,6 +15,7 @@ #include "string.h" #include "fix_property_atom.h" #include "atom.h" +#include "comm.h" #include "memory.h" #include "error.h" @@ -99,6 +100,17 @@ FixPropertyAtom::FixPropertyAtom(LAMMPS *lmp, int narg, char **arg) : if (border) comm_border = nvalue; + // warn if mol or charge keyword used without ghost yes + + if (border == 0) { + int flag = 0; + for (int i = 0; i < nvalue; i++) + if (style[i] == MOLECULE || style[i] == CHARGE) flag = 1; + if (flag && comm->me == 0) + error->warning(FLERR,"Fix property/atom mol or charge w/out " + "ghost communication"); + } + // store current atom style int n = strlen(atom->atom_style) + 1;