Commit 9127ac0d authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13357 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 144780f6
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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;