From e59460d6ec44e29a5fa89d60ec532c5f88e06ba8 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Thu, 17 Oct 2024 09:47:58 -0400 Subject: [PATCH] add an abort if we run true SDC with AMR --- 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.");