aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetRegrid2/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2012-02-24 21:53:42 -0500
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:05 +0100
commit5f566b7daa4e0d1d14536600b31207a1bc4dfc64 (patch)
tree908cdf7f8381d87c5933a319462ff45df8e69290 /Carpet/CarpetRegrid2/src
parentf61219d39e347b974f026a2d375cb4c971328df9 (diff)
CarpetRegrid2: Add output operator to CarpetRegrid2::domain_boundary
Diffstat (limited to 'Carpet/CarpetRegrid2/src')
-rw-r--r--Carpet/CarpetRegrid2/src/boundary.cc40
-rw-r--r--Carpet/CarpetRegrid2/src/boundary.hh7
2 files changed, 47 insertions, 0 deletions
diff --git a/Carpet/CarpetRegrid2/src/boundary.cc b/Carpet/CarpetRegrid2/src/boundary.cc
index 722f33cf8..e36af78a2 100644
--- a/Carpet/CarpetRegrid2/src/boundary.cc
+++ b/Carpet/CarpetRegrid2/src/boundary.cc
@@ -295,3 +295,43 @@ namespace CarpetRegrid2 {
}
} // namespace CarpetRegrid2
+
+
+
+ostream& operator<<(ostream& os, CarpetRegrid2::domain_boundary const& bnd)
+{
+ return
+ os << "domain_boundary:{"
+ << "nboundaryzones=" << bnd.nboundaryzones << ","
+ << "is_internal=" << bnd.is_internal << ","
+ << "is_staggered=" << bnd.is_staggered << ","
+ << "shiftout=" << bnd.shiftout << ","
+ << "boundary_staggering_mismatch=" << bnd.boundary_staggering_mismatch << ","
+ << "physical_lower=" << bnd.physical_lower << ","
+ << "physical_upper=" << bnd.physical_upper << ","
+ << "spacing=" << bnd.spacing << ","
+ << "exterior_lower=" << bnd.exterior_lower << ","
+ << "exterior_upper=" << bnd.exterior_upper << ","
+ << "origin=" << bnd.origin << ","
+ << "scale=" << bnd.scale << ","
+ << "physical_ilower=" << bnd.physical_ilower << ","
+ << "physical_iupper=" << bnd.physical_iupper << "}";
+}
+
+ostream& operator<<(ostream& os, CarpetRegrid2::level_boundary const& bnd)
+{
+ return
+ os << "level_boundary:{"
+ << *static_cast<CarpetRegrid2::domain_boundary const*>(&bnd) << ","
+ << "level_physical_lower=" << bnd.level_physical_lower << ","
+ << "level_physical_upper=" << bnd.level_physical_upper << ","
+ << "level_spacing=" << bnd.level_spacing << ","
+ << "level_exterior_lower=" << bnd.level_exterior_lower << ","
+ << "level_exterior_upper=" << bnd.level_exterior_upper << ","
+ << "level_physical_ilower=" << bnd.level_physical_ilower << ","
+ << "level_physical_iupper=" << bnd.level_physical_iupper << ","
+ << "level_exterior_ilower=" << bnd.level_exterior_ilower << ","
+ << "level_exterior_iupper=" << bnd.level_exterior_iupper << ","
+ << "min_bnd_dist_away=" << bnd.min_bnd_dist_away << ","
+ << "min_bnd_dist_incl=" << bnd.min_bnd_dist_incl << "}";
+}
diff --git a/Carpet/CarpetRegrid2/src/boundary.hh b/Carpet/CarpetRegrid2/src/boundary.hh
index 4ffd958ba..00e2ede21 100644
--- a/Carpet/CarpetRegrid2/src/boundary.hh
+++ b/Carpet/CarpetRegrid2/src/boundary.hh
@@ -5,6 +5,8 @@
#include <gh.hh>
#include <vect.hh>
+#include <ostream>
+
namespace CarpetRegrid2 {
@@ -123,4 +125,9 @@ namespace CarpetRegrid2 {
+ostream& operator<<(ostream& os, CarpetRegrid2::domain_boundary const& bnd);
+ostream& operator<<(ostream& os, CarpetRegrid2::level_boundary const& bnd);
+
+
+
#endif // #ifndef BOUNDARY_HH