ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
FloodCouplingParams Struct Reference

#include <ERF_FloodCouplingParams.H>

Collaboration diagram for FloodCouplingParams:

Static Public Member Functions

static FloodCouplingParams read ()
 

Public Attributes

bool enable = false
 erf.flood.enable: run a flood engine More...
 
std::string engine
 
int grid_ratio = 1
 erf.flood.grid_ratio: flood cells per atmospheric cell in x and y More...
 
int anchor_level = -1
 erf.flood.anchor_level: the level the flood grid refines, -1 = the finest More...
 

Member Function Documentation

◆ read()

FloodCouplingParams FloodCouplingParams::read ( )
static

Parse and check the keys above from erf.flood.*. With erf.flood.enable, erf.flood.engine must name an engine compiled into this executable (flood_engine_names(), ERF_FloodEngineRegistry.H).

12 {
14  amrex::ParmParse pp("erf.flood");
15  // enable, grid_ratio, anchor_level and engine: the inputs every surface
16  // coupling reads (ERF_SurfaceCouplingParams.H)
19  return c;
20 }
std::vector< std::string > flood_engine_names()
Names erf.flood.engine accepts, sorted; empty when no engine is compiled in.
Definition: ERF_FloodEngineRegistry.cpp:15
const SurfaceCouplingNames & flood_coupling_names()
The flood coupling's names: erf.flood.<key>, "[FLOOD]", "flood grid".
Definition: ERF_FloodGrid.H:26
ParmParse pp("prob")
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_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
bool enable
erf.flood.enable: run a flood engine
Definition: ERF_FloodCouplingParams.H:22

Referenced by ERF::initializeFlood().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ anchor_level

int FloodCouplingParams::anchor_level = -1

erf.flood.anchor_level: the level the flood grid refines, -1 = the finest

Referenced by read().

◆ enable

bool FloodCouplingParams::enable = false

erf.flood.enable: run a flood engine

Referenced by read().

◆ engine

std::string FloodCouplingParams::engine

erf.flood.engine: the flood engine behind the coupling (default: the only engine compiled in; required when there are several)

Referenced by read().

◆ grid_ratio

int FloodCouplingParams::grid_ratio = 1

erf.flood.grid_ratio: flood cells per atmospheric cell in x and y

Referenced by FloodCoupler::initialize(), and read().


The documentation for this struct was generated from the following files: