git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4535 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2010-08-20 00:08:32 +00:00
parent 3b4e7309fa
commit f146857239

View File

@ -326,9 +326,11 @@ void ComputeReduce::init()
// set index and check validity of region
iregion = domain->find_region(idregion);
if (iregion == -1)
error->all("Region ID for compute reduce/region does not exist");
if (idregion) {
iregion = domain->find_region(idregion);
if (iregion == -1)
error->all("Region ID for compute reduce/region does not exist");
}
}
/* ---------------------------------------------------------------------- */