ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_SurfaceCouplingParams.H
Go to the documentation of this file.
1 #ifndef ERF_SURFACE_COUPLING_PARAMS_H
2 #define ERF_SURFACE_COUPLING_PARAMS_H
3 
5 #include <AMReX_ParmParse.H>
6 
7 #include <string>
8 #include <vector>
9 
10 /**
11  * @file ERF_SurfaceCouplingParams.H
12  * @brief The inputs every surface coupling reads: enable, engine, grid_ratio,
13  * anchor_level
14  */
15 
16 /// "a", "b", "c" (each name in double quotes, comma separated)
17 std::string surface_quoted_list (const std::vector<std::string>& v);
18 
19 /**
20  * @brief Read erf.<coupling>.enable, grid_ratio, anchor_level and engine
21  *
22  * @param[in] pp ParmParse with the coupling's prefix (erf.fire, erf.flood)
23  * @param[in] names The coupling's names
24  * @param[in] engines The engines compiled into this executable, sorted
25  * @param[in,out] enable erf.<coupling>.enable (default on entry)
26  * @param[in,out] grid_ratio erf.<coupling>.grid_ratio (default on entry); aborts below 1
27  * @param[in,out] anchor_level erf.<coupling>.anchor_level (default on entry); aborts below -1
28  * @param[out] engine The engine: the only one compiled in, or the one the
29  * deck names. Aborts when the deck enables the coupling
30  * or names an engine and no engine, or no single one,
31  * fits.
32  */
33 void read_surface_coupling_common (amrex::ParmParse& pp,
34  const SurfaceCouplingNames& names,
35  const std::vector<std::string>& engines,
36  bool& enable,
37  int& grid_ratio,
38  int& anchor_level,
39  std::string& engine);
40 
41 #endif
ParmParse pp("prob")
The names a surface coupling uses in its inputs and messages.
std::string surface_quoted_list(const std::vector< std::string > &v)
"a", "b", "c" (each name in double quotes, comma separated)
Definition: ERF_SurfaceCouplingParams.cpp:5
void read_surface_coupling_common(amrex::ParmParse &pp, const SurfaceCouplingNames &names, const std::vector< std::string > &engines, bool &enable, int &grid_ratio, int &anchor_level, std::string &engine)
Read erf.<coupling>.enable, grid_ratio, anchor_level and engine.
Definition: ERF_SurfaceCouplingParams.cpp:13
Definition: ERF_SurfaceCouplingNames.H:18