Skip to content

Commit

Permalink
add check that USE_SHOCK_VAR is set for disable_shock_burning
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jan 11, 2024
1 parent 8eafee2 commit 20fdcf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@ Castro::read_params ()
}
#endif

#ifndef SHOCK_VAR
if (disable_shock_burning != 0) {
amrex::Error("ERROR: disable_shock_burning requires compiling with USE_SHOCK_VAR=TRUE");
}
#endif

if (riemann_solver == 1) {
if (cg_maxiter > HISTORY_SIZE) {
amrex::Error("error in riemanncg: cg_maxiter > HISTORY_SIZE");
Expand Down

0 comments on commit 20fdcf2

Please sign in to comment.