aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/region.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/region.hh')
-rw-r--r--Carpet/CarpetLib/src/region.hh38
1 files changed, 38 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/region.hh b/Carpet/CarpetLib/src/region.hh
new file mode 100644
index 000000000..73bc48ea0
--- /dev/null
+++ b/Carpet/CarpetLib/src/region.hh
@@ -0,0 +1,38 @@
+#ifndef REGION_HH
+#define REGION_HH
+
+#include <iostream>
+
+#include "defs.hh"
+#include "bbox.hh"
+#include "vect.hh"
+
+
+
+// Region description
+struct region_t {
+ ibbox extent; // extent
+ b2vect outer_boundaries; // outer boundaries
+ b2vect refinement_boundaries; // refinement boundaries
+ int map; // map to which this
+ // region belongs
+ int processor; // processor number
+};
+
+
+
+bool operator== (region_t const & a, region_t const & b);
+inline
+bool operator!= (region_t const & a, region_t const & b)
+{
+ return not operator== (a, b);
+}
+
+
+
+istream & operator>> (istream & is, region_t & reg);
+ostream & operator<< (ostream & os, region_t const & reg);
+
+
+
+#endif // #ifndef REGION_HH