aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/defs.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-04-13 20:16:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-04-13 20:16:00 +0000
commitff3c32bd8848efc0d1fe293b31d0078b61ec2d6e (patch)
treed2c98d725600a555f13942223ce46077f58d4a78 /Carpet/CarpetLib/src/defs.hh
parent8e8733b83b68567860d8e870f8694acc1a2bc5f3 (diff)
CarpetLib: Provide I/O methods for grid_structure_t
darcs-hash:20060413201623-dae7b-da2878c0520c3f35626e7201241037de38000cbc.gz
Diffstat (limited to 'Carpet/CarpetLib/src/defs.hh')
-rw-r--r--Carpet/CarpetLib/src/defs.hh11
1 files changed, 11 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/defs.hh b/Carpet/CarpetLib/src/defs.hh
index d486dc0e4..8da70b5cd 100644
--- a/Carpet/CarpetLib/src/defs.hh
+++ b/Carpet/CarpetLib/src/defs.hh
@@ -52,6 +52,17 @@ typedef vect<vect<int,dim>,2> i2vect;
+// Grid structure description
+struct grid_structure_t {
+ vector <vector <ibbox> > bbss; // refinement regions [reflevel][component]
+ vector <vector <bbvect> > obss; // outer boundaries [reflevel][component]
+};
+
+istream& operator>> (istream& is, grid_structure_t& gs);
+ostream& operator<< (ostream& os, grid_structure_t const& gs);
+
+
+
// A general type
enum centering { vertex_centered, cell_centered };