diff options
Diffstat (limited to 'Carpet/CarpetLib/src/prolongate_3d_rf2.cc')
-rw-r--r-- | Carpet/CarpetLib/src/prolongate_3d_rf2.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/prolongate_3d_rf2.cc b/Carpet/CarpetLib/src/prolongate_3d_rf2.cc index 3b632eb6c..4f669d6ea 100644 --- a/Carpet/CarpetLib/src/prolongate_3d_rf2.cc +++ b/Carpet/CarpetLib/src/prolongate_3d_rf2.cc @@ -8,6 +8,7 @@ #include <cstdlib> #include <iostream> +#include "gdata.hh" #include "vectors.h" #include "operator_prototypes_3d.hh" #include "typeprops.hh" @@ -419,8 +420,8 @@ namespace CarpetLib { CCTK_WARN (0, "Internal error: region extent is not contained in array extent"); } - if (any (srcext != srcbbox.shape() / srcbbox.stride() or - dstext != dstbbox.shape() / dstbbox.stride())) + if (any (srcext != gdata::allocated_memory_shape(srcbbox.shape() / srcbbox.stride()) or + dstext != gdata::allocated_memory_shape(dstbbox.shape() / dstbbox.stride()))) { CCTK_WARN (0, "Internal error: array sizes don't agree with bounding boxes"); } |