diff options
Diffstat (limited to 'Carpet/Carpet/src/SetupGH.cc')
-rw-r--r-- | Carpet/Carpet/src/SetupGH.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc index 0fbc657f0..0b62c4d3d 100644 --- a/Carpet/Carpet/src/SetupGH.cc +++ b/Carpet/Carpet/src/SetupGH.cc @@ -165,6 +165,8 @@ namespace Carpet { static void ensure_CartGrid3D_type (); static void + ensure_CartGrid3D_domain (); // UNUSED + static void ensure_CartGrid3D_avoid_origin (); static void ensure_ReflectionSymmetry_avoid_origin (centering refcentering); @@ -2250,6 +2252,28 @@ namespace Carpet { + // UNUSED: + // Ensure that CartGrid3D doesn't apply symmetries + void + ensure_CartGrid3D_domain () + { + if (CCTK_IsThornActive ("CartGrid3D")) { + int type; + void const * ptr; + + ptr = CCTK_ParameterGet ("domain", "CartGrid3D", & type); + assert (ptr != 0); + assert (type == PARAMETER_KEYWORD); + char const * const domain + = * static_cast<char const * const *> (ptr); + if (not CCTK_EQUALS (domain, "full")) { + CCTK_WARN (0, "When Carpet::domain_from_coordbase = no, and when Carpet::max_refinement_levels > 1, then thorn CartGrid3D cannot provide symmetry boundaries"); + } + } + } + + + // Ensure that CartGrid3D::avoid_origin = no void ensure_CartGrid3D_avoid_origin () |