diff options
-rw-r--r-- | Carpet/CarpetRegrid2/src/property.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Carpet/CarpetRegrid2/src/property.cc b/Carpet/CarpetRegrid2/src/property.cc index e7df4ea24..ac80721f5 100644 --- a/Carpet/CarpetRegrid2/src/property.cc +++ b/Carpet/CarpetRegrid2/src/property.cc @@ -202,10 +202,12 @@ namespace CarpetRegrid2 { CCTK_REAL const combined_size = static_cast <CCTK_REAL> (combined.size()); - // Is the current setup simple enough? (It is "simple enough" if - // using a single bbox would be too inefficient.) + // Is the current setup "simple enough"? (It is "simple enough" if + // either it already consists of a single box, or if using a + // single bbox would be too inefficient.) // TODO: Check this also for pairs of regions - return min_fraction * combined_size > regions_size; + return (regions.at(rl).setsize() == 1 or + min_fraction * combined_size > regions_size); } void combine_regions:: |