ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_ProblemDispatch.H
Go to the documentation of this file.
1
#ifndef ERF_PROBLEM_DISPATCH_H_
2
#define ERF_PROBLEM_DISPATCH_H_
3
4
#include <string>
5
6
namespace
erf_problem_dispatch
{
7
8
enum class
CustomVelocityInitializer
: unsigned char {
9
None
,
10
CloudChamber
,
11
UserDefined
12
};
13
14
inline
CustomVelocityInitializer
15
custom_velocity_initializer
(
const
std::string& problem_name) noexcept
16
{
17
if
(problem_name ==
"cloud chamber"
|| problem_name ==
"cloudchamber"
) {
18
return
CustomVelocityInitializer::CloudChamber
;
19
}
20
if
(problem_name ==
"userdefined"
) {
21
return
CustomVelocityInitializer::UserDefined
;
22
}
23
return
CustomVelocityInitializer::None
;
24
}
25
26
}
// namespace erf_problem_dispatch
27
28
#endif
erf_problem_dispatch
Definition:
ERF_ProblemDispatch.H:6
erf_problem_dispatch::custom_velocity_initializer
CustomVelocityInitializer custom_velocity_initializer(const std::string &problem_name) noexcept
Definition:
ERF_ProblemDispatch.H:15
erf_problem_dispatch::CustomVelocityInitializer
CustomVelocityInitializer
Definition:
ERF_ProblemDispatch.H:8
erf_problem_dispatch::CustomVelocityInitializer::None
@ None
erf_problem_dispatch::CustomVelocityInitializer::CloudChamber
@ CloudChamber
erf_problem_dispatch::CustomVelocityInitializer::UserDefined
@ UserDefined
Source
Prob
ERF_ProblemDispatch.H
Generated by
1.9.1