From c131b75529f5bebc0e0846420883f9d294b63152 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Mon, 18 Jan 2010 15:51:14 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3713 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/compute_property_molecule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compute_property_molecule.cpp b/src/compute_property_molecule.cpp index c7b37e266b..ca50dcaf66 100644 --- a/src/compute_property_molecule.cpp +++ b/src/compute_property_molecule.cpp @@ -133,7 +133,7 @@ double ComputePropertyMolecule::memory_usage() void ComputePropertyMolecule::pack_mol(int n) { for (int i = idlo; i <= idhi; i++) - if (molmap[i-idlo] >= 0) { + if (molmap == NULL || molmap[i-idlo] >= 0) { buf[n] = i; n += nvalues; }