Skip to content

Commit

Permalink
add an abort if we run true SDC with AMR (#2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Oct 17, 2024
1 parent 713b6ab commit 71b5b56
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 71b5b56

Please sign in to comment.