Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
ramses
include
shammodels
ramses
config
enum_SlopeMode.hpp
Go to the documentation of this file.
1
// -------------------------------------------------------//
2
//
3
// SHAMROCK code for hydrodynamics
4
// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5
// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6
// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7
//
8
// -------------------------------------------------------//
9
10
#pragma once
11
18
#include "
shambase/exception.hpp
"
19
#include "nlohmann/json.hpp"
20
#include "
shamrock/io/json_utils.hpp
"
21
22
namespace
shammodels::basegodunov
{
23
25
enum
SlopeMode
{
26
None = 0,
//< slope is zero (fallback to order 1 reconstruction)
27
VanLeer_f = 1,
//< Van Leer flux limiter (Toro form, see slope_function_van_leer_f_form)
28
VanLeer_std = 2,
//< Van Leer standard flux limiter (see shammath::van_leer_slope)
29
VanLeer_sym = 3,
//< Van Leer symmetric flux limiter (see shammath::van_leer_slope_symetric)
30
Minmod = 4,
//< Minmod flux limiter (see shammath::minmod)
31
};
32
33
SHAMROCK_JSON_SERIALIZE_ENUM
(
34
SlopeMode
,
35
{{SlopeMode::None,
"none"
},
36
{SlopeMode::VanLeer_f,
"vanleer_f"
},
37
{SlopeMode::VanLeer_std,
"vanleer_std"
},
38
{SlopeMode::VanLeer_sym,
"vanleer_sym"
},
39
{SlopeMode::Minmod,
"minmod"
}});
40
41
}
// namespace shammodels::basegodunov
exception.hpp
This header file contains utility functions related to exception handling in the code.
json_utils.hpp
SHAMROCK_JSON_SERIALIZE_ENUM
#define SHAMROCK_JSON_SERIALIZE_ENUM(ENUM_TYPE,...)
Macro to serialize/deserialize an enum to/from a JSON object modified from the NLOHMANN_JSON_SERIALIZ...
Definition
json_utils.hpp:86
shammodels::basegodunov
namespace for the basegodunov model
Definition
AMRCellInfos.hpp:20
shammodels::basegodunov::SlopeMode
SlopeMode
Slope limiter modes.
Definition
enum_SlopeMode.hpp:25
Generated on Wed May 13 2026 13:21:49 for Shamrock by
1.9.8