aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetLib/src/gdata.cc8
-rw-r--r--Carpet/CarpetLib/src/gdata.hh2
2 files changed, 10 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/gdata.cc b/Carpet/CarpetLib/src/gdata.cc
index 2226a5b07..23c5aaead 100644
--- a/Carpet/CarpetLib/src/gdata.cc
+++ b/Carpet/CarpetLib/src/gdata.cc
@@ -186,6 +186,14 @@ allocated_memory_shape (vect<int,D> shape)
}
#endif
+bool
+gdata::
+fence_is_energized ()
+{
+ DECLARE_CCTK_PARAMETERS;
+
+ return electric_fence;
+}
// Data manipulators
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index c000a4d74..152a7e118 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -105,8 +105,10 @@ public:
0;
virtual void free () = 0;
virtual size_t allocsize (const ibbox& extent, const int proc) const = 0;
+
// true if fence is intact
virtual bool check_fence (const int upperlower) const = 0;
+ static bool fence_is_energized ();
// Accessors
bool has_storage () const {