aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.cc
diff options
context:
space:
mode:
authorRoland Haas <rhaas@tapir.caltech.edu>2013-10-31 18:39:39 -0700
committerRoland Haas <rhaas@tapir.caltech.edu>2013-10-31 19:06:02 -0700
commit9c7f841c2afad5ef8a1e1c8294d487f38885a377 (patch)
treeaa8d983b2992cae75f04263febdd7e5603726d14 /Carpet/CarpetLib/src/gdata.cc
parentd43e472044d51790713abd2c50e2389eee366843 (diff)
CarpetLib: introduce accessor in gdata to query electric_fence
this function effectively exposes the CarpetLib parameter to Carpet without explicit parameter sharing
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.cc')
-rw-r--r--Carpet/CarpetLib/src/gdata.cc8
1 files changed, 8 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