diff --git a/src/hydro/Gizmo/hydro_io.h b/src/hydro/Gizmo/hydro_io.h index 6c4f64b2576c76e81fc7d432a4d4a6f6ecb5189c..f27c19b06109682f28195de787729f8527603d3c 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 06acc2db88243bbda4ede24c3fb9cf70868b666c..b12ee3adab4cd83c7ef0d8f3e1c293f3a7dfe4b1 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 */