1 #ifndef ERF_LANDSURFACE_H
2 #define ERF_LANDSURFACE_H
4 #include <AMReX_PlotFileUtil.H>
25 template<
class NewSurfModel>
30 m_lsm_model[lev] = std::make_unique<NewSurfModel>();
43 const amrex::MultiFab& cons_in,
44 const amrex::Geometry& geom,
45 const amrex::Real& dt_advance)
51 Advance (
const int& lev,
const amrex::Real& dt_advance)
85 const amrex::Vector<int> &level_steps,
86 const amrex::Vector<amrex::IntVect> &ref_ratio)
90 amrex::Vector<std::string> varnames;
94 varnames.resize(nvar);
97 std::string plotfilename = amrex::Concatenate(
plot_file_lsm, level_steps[0], 5);
98 for (
int lev(0); lev<nlev; ++lev) {
102 amrex::IntVect ng(0,0,0);
103 amrex::BoxArray ba = mf_lsm->boxArray();
104 amrex::DistributionMapping dm = mf_lsm->DistributionMap();
106 for (
int n(0); n<nvar; ++n) {
112 WriteMultiLevelPlotfile (plotfilename, nlev, GetVecOfConstPtrs(
m_lsm_data_lev),
Definition: ERF_LandSurface.H:14
amrex::Vector< amrex::Geometry > m_lsm_geom_lev
Definition: ERF_LandSurface.H:127
std::string Get_VarName(const int &varIdx)
Definition: ERF_LandSurface.H:81
void Advance(const int &lev, const amrex::Real &dt_advance)
Definition: ERF_LandSurface.H:51
int Get_Data_Size()
Definition: ERF_LandSurface.H:78
amrex::Geometry Get_Lsm_Geom(const int &lev)
Definition: ERF_LandSurface.H:75
void ReSize(const int &nlev)
Definition: ERF_LandSurface.H:23
amrex::Vector< amrex::MultiFab > m_lsm_data_lev
Definition: ERF_LandSurface.H:130
void Plot_Lsm_Data(amrex::Real time, const amrex::Vector< int > &level_steps, const amrex::Vector< amrex::IntVect > &ref_ratio)
Definition: ERF_LandSurface.H:84
amrex::Vector< std::unique_ptr< NullSurf > > m_lsm_model
Definition: ERF_LandSurface.H:121
void SetModel()
Definition: ERF_LandSurface.H:27
amrex::MultiFab * Get_Flux_Ptr(const int &lev, const int &varIdx)
Definition: ERF_LandSurface.H:72
void Init(const int &lev, const amrex::MultiFab &cons_in, const amrex::Geometry &geom, const amrex::Real &dt_advance)
Definition: ERF_LandSurface.H:42
LandSurface()
Definition: ERF_LandSurface.H:18
void Update_State_Vars_Lev(const int &lev, amrex::MultiFab &cons_in)
Definition: ERF_LandSurface.H:63
void Define(const int &lev, SolverChoice &sc)
Definition: ERF_LandSurface.H:35
amrex::MultiFab * Get_Data_Ptr(const int &lev, const int &varIdx)
Definition: ERF_LandSurface.H:69
std::string plot_file_lsm
Definition: ERF_LandSurface.H:124
void Update_Micro_Vars_Lev(const int &lev, amrex::MultiFab &cons_in)
Definition: ERF_LandSurface.H:57
Definition: ERF_DataStruct.H:82