From 203491df1187d14dc91a740630cbe4a4dc31f812 Mon Sep 17 00:00:00 2001 From: Bert Vandenbroucke <bert.vandenbroucke@ugent.be> Date: Tue, 16 Aug 2016 16:02:38 +0100 Subject: [PATCH] Added Riemann solver type to snapshot files. --- src/hydro/Gizmo/hydro_io.h | 4 ++++ src/riemann.h | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/src/hydro/Gizmo/hydro_io.h b/src/hydro/Gizmo/hydro_io.h index 6c4f64b257..f27c19b061 100644 --- a/src/hydro/Gizmo/hydro_io.h +++ b/src/hydro/Gizmo/hydro_io.h @@ -21,6 +21,7 @@ #include "hydro_gradients.h" #include "hydro_slope_limiters.h" #include "io_properties.h" +#include "riemann.h" /** * @brief Specifies which particle fields to read from a dataset @@ -118,6 +119,9 @@ void writeSPHflavour(hid_t h_grpsph) { HYDRO_SLOPE_LIMITER_CELL_IMPLEMENTATION); writeAttribute_s(h_grpsph, "Piecewise slope limiter model", HYDRO_SLOPE_LIMITER_FACE_IMPLEMENTATION); + + /* Riemann solver information */ + writeAttribute_s(h_grpsph, "Riemann solver type", RIEMANN_SOLVER_IMPLEMENTATION); } /** diff --git a/src/riemann.h b/src/riemann.h index 06acc2db88..b12ee3adab 100644 --- a/src/riemann.h +++ b/src/riemann.h @@ -30,15 +30,24 @@ #define EXACT_SOLVER #ifdef EXACT_SOLVER + +#define RIEMANN_SOLVER_IMPLEMENTATION "Exact Riemann solver (Toro 2009)" #include "riemann/riemann_exact.h" + #endif #ifdef TRRS_SOLVER + +#define RIEMANN_SOLVER_IMPLEMENTATION "Two Rarefaction Riemann Solver (Toro 2009)" #include "riemann/riemann_trrs.h" + #endif #ifdef HLLC_SOLVER + +#define RIEMANN_SOLVER_IMPLEMENTATION "Harten-Lax-van Leer-Contact Riemann solver (Toro 2009)" #include "riemann/riemann_hllc.h" + #endif #endif /* SWIFT_RIEMANN_H */ -- GitLab