1 #ifndef ERF_FLOOD_ENGINE_TEMPLATE_H
2 #define ERF_FLOOD_ENGINE_TEMPLATE_H
42 const char*
name ()
const override;
57 const amrex::MultiFab* z_phys_nd_atm)
override;
60 void start_run (amrex::Real stop_time,
int max_step,
int steps_per_coarse_step)
override;
80 void write_plotfile (
const std::string& plotfile_prefix, amrex::Real time,
int step)
const override;
86 const amrex::MultiFab*
plot_var (
const std::string&
name)
const override;
The interface between the flood coupling and a flood engine.
Definition: ERF_FloodEngineTemplate.H:39
void verify_prerequisites(const ERF &erf, int lev) override
void write_plotfile(const std::string &plotfile_prefix, amrex::Real time, int step) const override
Optional: the engine's own plotfile of the flood grid.
void write_checkpoint(const std::string &checkpointname) const override
Optional: the engine's state under checkpointname/Level_<lev>/.
const amrex::MultiFab * plot_var(const std::string &name) const override
Optional: the field plot_var_names() lists as name, on the flood grid.
void initialize(const ERF &erf, int lev, const FloodGrid &fg, const amrex::MultiFab *z_phys_nd_atm) override
void read_checkpoint(const std::string &restart_chkfile, int step) override
Optional: restore what write_checkpoint wrote (the default aborts).
void start_run(amrex::Real stop_time, int max_step, int steps_per_coarse_step) override
Optional: the run's end, once known (stop time, max_step, substeps).
void advance(const FloodForcing &forcing) override
bool wants_surface_precip() const override
Optional: false for an engine that reads no precipitation (default true).
std::vector< std::string > plot_var_names() const override
Optional: fields for the ERF plotfile, each named "flood_...".
const char * name() const override
The name erf.flood.engine selects this engine by, for example "my_flood".
A flood engine behind the shared coupling layer.
Definition: ERF_FloodEngine.H:109
Definition: ERF_InterpolationUtils.H:15
@ fg
Definition: ERF_AdvanceMorrison.cpp:111
The atmospheric state a flood engine reads for one step.
Definition: ERF_FloodEngine.H:62
2D horizontal flood grid
Definition: ERF_FloodGrid.H:42