From 25225470dbeeec4d8e8d1706b2822c494c1777c4 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 3 Dec 2012 15:43:15 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9138 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_property_atom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compute_property_atom.cpp b/src/compute_property_atom.cpp index cce33ddb5b..aafada4b99 100644 --- a/src/compute_property_atom.cpp +++ b/src/compute_property_atom.cpp @@ -369,7 +369,8 @@ void ComputePropertyAtom::compute_peratom() buf = vector; (this->*pack_choice[0])(0); } else { - buf = &array[0][0]; + if (nmax) buf = &array[0][0]; + else buf = NULL; for (int n = 0; n < nvalues; n++) (this->*pack_choice[n])(n); }