aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-05-20 09:32:59 -0500
committerErik Schnetter <schnetter@gmail.com>2013-05-20 09:32:59 -0500
commitf38e7da6e3481a33fa9b49f2674a84226f5a7aa3 (patch)
tree8a03d5c53bbb948745e14368707fcb8f7a7b94b6 /Carpet/CarpetLib/src
parented0df253c7d134be8681e031bfc2a4cc4472ab16 (diff)
CarpetLib: Correct some type declarations for 4d grid structures
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/data.cc6
-rw-r--r--Carpet/CarpetLib/src/operator_prototypes_4d.hh2
2 files changed, 5 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 8500997cc..2aed5d914 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -146,7 +146,7 @@ call_operator (void
srcregbbox, dstregbbox, extraargs);
#else
# if ! defined (NDEBUG) && ! defined (CARPET_OPTIMISE)
- ibset alldstregbboxes;
+ ibset4 alldstregbboxes;
# endif
#pragma omp parallel
{
@@ -184,11 +184,11 @@ call_operator (void
}
}
# if ! defined (NDEBUG) && ! defined (CARPET_OPTIMISE)
- if (not (alldstregbboxes == ibset (dstregbbox))) {
+ if (not (alldstregbboxes == ibset4 (dstregbbox))) {
cout << "alldstregbboxes=" << alldstregbboxes << endl
<< "dstregbbox=" << dstregbbox << endl;
}
- assert (alldstregbboxes == ibset (dstregbbox));
+ assert (alldstregbboxes == ibset4 (dstregbbox));
# endif
#endif
}
diff --git a/Carpet/CarpetLib/src/operator_prototypes_4d.hh b/Carpet/CarpetLib/src/operator_prototypes_4d.hh
index 71d1e3bcd..e9d015e43 100644
--- a/Carpet/CarpetLib/src/operator_prototypes_4d.hh
+++ b/Carpet/CarpetLib/src/operator_prototypes_4d.hh
@@ -7,6 +7,7 @@
#include "defs.hh"
#include "bbox.hh"
+#include "bboxset.hh"
#include "vect.hh"
#include "operator_prototypes.hh"
@@ -42,6 +43,7 @@ namespace CarpetLib {
typedef vect <bool, dim4> bvect4;
typedef vect <int, dim4> ivect4;
typedef bbox <int, dim4> ibbox4;
+ typedef bboxset <int, dim4> ibset4;