diff options
-rw-r--r-- | Carpet/CarpetLib/src/prolongate_3d_cc_o1_rf2.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/prolongate_3d_cc_o1_rf2.cc b/Carpet/CarpetLib/src/prolongate_3d_cc_o1_rf2.cc index 6bd8d0acb..e3d372f41 100644 --- a/Carpet/CarpetLib/src/prolongate_3d_cc_o1_rf2.cc +++ b/Carpet/CarpetLib/src/prolongate_3d_cc_o1_rf2.cc @@ -70,13 +70,17 @@ namespace CarpetLib { +#if 0 ivect3 const offsetlo = 1; ivect3 const offsethi = 1; +#endif + ivect3 const offsetlo = 0; + ivect3 const offsethi = 0; - if (not regbbox.expand(offsetlo, offsethi).is_contained_in(srcbbox) or - not regbbox .is_contained_in(dstbbox)) + if (not regbbox.expanded_for(srcbbox).expand(offsetlo, offsethi).is_contained_in(srcbbox) or + not regbbox .is_contained_in(dstbbox)) { cout << "ERROR:\n" << "srcbbox=" << srcbbox << "\n" |