From cbfaf7aecf0c25b57e2c81db03a3cf7becb69ad7 Mon Sep 17 00:00:00 2001 From: pscrozi Date: Fri, 18 Oct 2013 16:29:23 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10872 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/fix_property_atom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fix_property_atom.cpp b/src/fix_property_atom.cpp index ee05a91b73..b0983bf740 100644 --- a/src/fix_property_atom.cpp +++ b/src/fix_property_atom.cpp @@ -378,13 +378,13 @@ int FixPropertyAtom::pack_border(int n, int *list, double *buf) j = list[i]; buf[m++] = molecule[j]; } - } else if (style[j] == INTEGER) { + } else if (style[k] == INTEGER) { int *ivector = atom->ivector[index[k]]; for (i = 0; i < n; i++) { j = list[i]; buf[m++] = ivector[j]; } - } else if (style[j] == DOUBLE) { + } else if (style[k] == DOUBLE) { double *dvector = atom->dvector[index[k]]; for (i = 0; i < n; i++) { j = list[i];