From 20fdcf21bcfa932e1c46dba2fe75f6b3fd310503 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Thu, 11 Jan 2024 15:47:17 -0500 Subject: [PATCH] add check that USE_SHOCK_VAR is set for disable_shock_burning --- Source/driver/Castro.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/driver/Castro.cpp b/Source/driver/Castro.cpp index 7d114996e8..5a48bbc54a 100644 --- a/Source/driver/Castro.cpp +++ b/Source/driver/Castro.cpp @@ -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");