aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-08-08 13:22:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-08-08 13:22:00 +0000
commit953547ddea9435fe0cbbe8358941eed1284d2c6b (patch)
tree7748e9fb9f094975c82c9a2e9d830432ded3dec7
parentadf356c7b890fb08b6df2cf4b1982c7e65780e58 (diff)
CarpetLib: Introduce new types b2vect and i2vect
These types are typedef vect<vect<bool,dim>,2> b2vect; typedef vect<vect<int,dim>,2> i2vect; They are similar to bbvect and iivect, but have the order reversed. They are useful if you need one element per face of a grid variable. darcs-hash:20050808132221-891bb-fa40b6d4fb8e760c7005adf7e526dd0a6597f0ec.gz
-rw-r--r--Carpet/CarpetLib/src/defs.hh3
-rw-r--r--Carpet/CarpetLib/src/vect.cc2
2 files changed, 5 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh
index 0ca508771..8a320ed3d 100644
--- a/Carpet/CarpetLib/src/defs.hh
+++ b/Carpet/CarpetLib/src/defs.hh
@@ -42,6 +42,9 @@ typedef bboxset<int,dim> ibset;
typedef vect<vect<bool,2>,dim> bbvect;
typedef vect<vect<int,2>,dim> iivect;
+typedef vect<vect<bool,dim>,2> b2vect;
+typedef vect<vect<int,dim>,2> i2vect;
+
// A general type
diff --git a/Carpet/CarpetLib/src/vect.cc b/Carpet/CarpetLib/src/vect.cc
index 4fe956172..42bb5f725 100644
--- a/Carpet/CarpetLib/src/vect.cc
+++ b/Carpet/CarpetLib/src/vect.cc
@@ -56,3 +56,5 @@ template void vect<bool,3>::output (ostream& os) const;
template void vect<CCTK_REAL,3>::output (ostream& os) const;
template void vect<vect<bool,2>,3>::output (ostream& os) const;
template void vect<vect<int,2>,3>::output (ostream& os) const;
+template void vect<vect<bool,3>,2>::output (ostream& os) const;
+template void vect<vect<int,3>,2>::output (ostream& os) const;