From 26b3eebf3cec563e4f23dfa28573fe95423869f7 Mon Sep 17 00:00:00 2001 From: Bert Vandenbroucke <bert.vandenbroucke@ugent.be> Date: Tue, 23 Aug 2016 09:02:39 +0200 Subject: [PATCH] Added equation of state check to Riemann solver. --- src/riemann.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/riemann.h b/src/riemann.h index 0191058e3b..d0ae57a640 100644 --- a/src/riemann.h +++ b/src/riemann.h @@ -27,6 +27,14 @@ #include "stdio.h" #include "stdlib.h" +/* Check that we use an ideal equation of state, since other equations of state + are not compatible with these Riemann solvers. */ +#ifndef EOS_IDEAL_GAS +#error Currently there are no Riemann solvers that can handle the requested \ + equation of state. Select an ideal gas equation of state if you want to \ + use this hydro scheme! +#endif + #if defined(RIEMANN_SOLVER_EXACT) #define RIEMANN_SOLVER_IMPLEMENTATION "Exact Riemann solver (Toro 2009)" -- GitLab