From 71b5b56ccf54e30aeb109e74e0c59b086134ba25 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Thu, 17 Oct 2024 15:06:46 -0400 Subject: [PATCH] add an abort if we run true SDC with AMR (#2978) --- Source/driver/Castro.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/driver/Castro.cpp b/Source/driver/Castro.cpp index 11d10c1b9d..8ea195e8d2 100644 --- a/Source/driver/Castro.cpp +++ b/Source/driver/Castro.cpp @@ -367,6 +367,14 @@ Castro::read_params () } #endif +#ifdef TRUE_SDC + int max_level; + ppa.query("max_level", max_level); + if (max_level > 0) { + amrex::Error("True SDC does not work with AMR."); + } +#endif + #ifndef TRUE_SDC if (time_integration_method == SpectralDeferredCorrections) { amrex::Error("True SDC currently requires USE_TRUE_SDC=TRUE when compiling.");