-
Matthieu Schaller authored
Implemented the changes in ls that prevent gizmo crashes in cases where the mesh is seriously distorted
Matthieu Schaller authoredImplemented the changes in ls that prevent gizmo crashes in cases where the mesh is seriously distorted
riemann.h 1.70 KiB
/*******************************************************************************
* This file is part of SWIFT.
* Coypright (c) 2015 Bert Vandenbroucke (bert.vandenbroucke@ugent.be)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#ifndef SWIFT_RIEMANN_H
#define SWIFT_RIEMANN_H
/* Config parameters. */
#include "../config.h"
#if defined(RIEMANN_SOLVER_EXACT)
#define RIEMANN_SOLVER_IMPLEMENTATION "Exact Riemann solver (Toro 2009)"
#if defined(EOS_IDEAL_GAS) || defined(EOS_ISOTHERMAL_GAS)
#include "riemann/riemann_exact.h"
#else
#error "The Exact Riemann solver is incompatible with this equation of state!"
#endif
#elif defined(RIEMANN_SOLVER_TRRS)
#define RIEMANN_SOLVER_IMPLEMENTATION \
"Two Rarefaction Riemann Solver (Toro 2009)"
#include "riemann/riemann_trrs.h"
#elif defined(RIEMANN_SOLVER_HLLC)
#define RIEMANN_SOLVER_IMPLEMENTATION \
"Harten-Lax-van Leer-Contact Riemann solver (Toro 2009)"
#include "riemann/riemann_hllc.h"
#else
#error "Error: no Riemann solver selected!"
#endif
#endif /* SWIFT_RIEMANN_H */