Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammodels
ramses
include
shammodels
ramses
config
enum_ExtForceCoupling.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
19
#include "
shambase/exception.hpp
"
20
#include "nlohmann/json.hpp"
21
#include "
shamrock/io/json_utils.hpp
"
22
23
namespace
shammodels::basegodunov
{
24
30
enum
ExtForceCoupling
{
33
Midpoint
= 0,
37
Trapezoidal
= 1
38
};
39
40
SHAMROCK_JSON_SERIALIZE_ENUM
(
41
ExtForceCoupling
,
42
{{
ExtForceCoupling::Midpoint
,
"midpoint"
}, {
ExtForceCoupling::Trapezoidal
,
"trapezoidal"
}});
43
44
}
// 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::ExtForceCoupling
ExtForceCoupling
Time quadrature used to couple the external forces source term to the solver.
Definition
enum_ExtForceCoupling.hpp:30
shammodels::basegodunov::Midpoint
@ Midpoint
Definition
enum_ExtForceCoupling.hpp:33
shammodels::basegodunov::Trapezoidal
@ Trapezoidal
Definition
enum_ExtForceCoupling.hpp:37
Generated on
for Shamrock by
1.15.0