ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_FloodCouplingParams.H
Go to the documentation of this file.
1 #ifndef ERF_FLOOD_COUPLING_PARAMS_H
2 #define ERF_FLOOD_COUPLING_PARAMS_H
3 
4 #include <string>
5 
6 /**
7  * @file ERF_FloodCouplingParams.H
8  * @brief The inputs of the atmosphere side of the flood coupling
9  *
10  * The erf.flood.* keys that the shared coupling layer (FloodCoupler) reads:
11  * whether a flood engine runs, which one, and where its grid sits. Every flood
12  * engine shares them; each engine reads its own keys besides (flood.<engine>.*
13  * is recommended). read() parses them with their range checks, aborting with a
14  * message that names the key.
15  *
16  * The flood plotfile keys (erf.flood.plot_file, plot_int, plot_per) are read
17  * by ERF with its other output keys (ERF::ReadParameters).
18  */
20 {
21  /// erf.flood.enable: run a flood engine
22  bool enable = false;
23  /// erf.flood.engine: the flood engine behind the coupling (default: the
24  /// only engine compiled in; required when there are several)
25  std::string engine;
26  /// erf.flood.grid_ratio: flood cells per atmospheric cell in x and y
27  int grid_ratio = 1;
28  /// erf.flood.anchor_level: the level the flood grid refines, -1 = the finest
29  int anchor_level = -1;
30 
31  /// Parse and check the keys above from erf.flood.*. With erf.flood.enable,
32  /// erf.flood.engine must name an engine compiled into this executable
33  /// (flood_engine_names(), ERF_FloodEngineRegistry.H).
34  static FloodCouplingParams read ();
35 };
36 
37 #endif
Definition: ERF_FloodCouplingParams.H:20
std::string engine
Definition: ERF_FloodCouplingParams.H:25
int grid_ratio
erf.flood.grid_ratio: flood cells per atmospheric cell in x and y
Definition: ERF_FloodCouplingParams.H:27
int anchor_level
erf.flood.anchor_level: the level the flood grid refines, -1 = the finest
Definition: ERF_FloodCouplingParams.H:29
static FloodCouplingParams read()
Definition: ERF_FloodCouplingParams.cpp:11
bool enable
erf.flood.enable: run a flood engine
Definition: ERF_FloodCouplingParams.H:22