Skip to content
Snippets Groups Projects
Commit 203491df authored by Bert Vandenbroucke's avatar Bert Vandenbroucke
Browse files

Added Riemann solver type to snapshot files.

parent 0eea1708
Branches
Tags
1 merge request!223Merge Gizmo-SPH into the master branch
......@@ -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);
}
/**
......
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment