git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4535 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user