diff options
Diffstat (limited to 'Carpet/Carpet/src/CallFunction.cc')
-rw-r--r-- | Carpet/Carpet/src/CallFunction.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/CallFunction.cc b/Carpet/Carpet/src/CallFunction.cc index 224a66346..494f2864c 100644 --- a/Carpet/Carpet/src/CallFunction.cc +++ b/Carpet/Carpet/src/CallFunction.cc @@ -473,7 +473,11 @@ namespace Carpet { void CheckFence (cGH const * const cctkGH, cFunctionData * attribute) { + DECLARE_CCTK_PARAMETERS; + if (is_meta_mode()) return; // meta mode has no accessible variables + // enumerating the grid variables is expensive + if (not electric_fence) return; Timers::Timer timer("FenceCheck"); timer.start(); |