ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_NullSurf.H
Go to the documentation of this file.
1 #ifndef ERF_NULLSURF_H
2 #define ERF_NULLSURF_H
3 
4 #include <AMReX_MultiFabUtil.H>
5 #include <AMReX_Geometry.H>
6 #include <ERF_DataStruct.H>
7 
8 class NullSurf {
9 
10  public:
11  NullSurf () {}
12 
13  virtual ~NullSurf () = default;
14 
15  virtual
16  void
17  Define (SolverChoice& /*sc*/) { }
18 
19  virtual
20  void Init (const amrex::MultiFab& /*cons_in*/,
21  const amrex::Geometry& /*geom*/,
22  const amrex::Real& /*dt_advance*/) { }
23 
24  virtual
25  void
26  Advance (const amrex::Real& /*dt_advance*/) { }
27 
28  virtual
29  void
30  Update_Micro_Vars (amrex::MultiFab& /*cons_in*/) { }
31 
32  virtual
33  void
34  Update_State_Vars (amrex::MultiFab& /*cons_in*/) { }
35 
36  virtual
37  void
38  Copy_State_to_Micro (const amrex::MultiFab& /*cons_in*/) { }
39 
40  virtual
41  void
42  Copy_Micro_to_State (amrex::MultiFab& /*cons_in*/) { }
43 
44  virtual
45  amrex::MultiFab*
46  Lsm_Data_Ptr (const int& /*varIdx*/ ) { return nullptr; }
47 
48  virtual
49  amrex::MultiFab*
50  Lsm_Flux_Ptr (const int& /*varIdx*/ ) { return nullptr; }
51 
52  virtual
53  amrex::Geometry
54  Lsm_Geom ( ) { return m_lsm_geom; }
55 
56  virtual
57  int
59 
60  virtual
61  std::string
62  Lsm_VarName (const int& /*varIdx*/)
63  {
64  return varname;
65  }
66 
67  private:
68  int m_lsm_size = 1;
69  amrex::Geometry m_lsm_geom;
70  std::string varname = " ";
71 };
72 #endif
Definition: ERF_NullSurf.H:8
int m_lsm_size
Definition: ERF_NullSurf.H:68
virtual void Init(const amrex::MultiFab &, const amrex::Geometry &, const amrex::Real &)
Definition: ERF_NullSurf.H:20
virtual void Copy_State_to_Micro(const amrex::MultiFab &)
Definition: ERF_NullSurf.H:38
virtual amrex::MultiFab * Lsm_Data_Ptr(const int &)
Definition: ERF_NullSurf.H:46
virtual void Copy_Micro_to_State(amrex::MultiFab &)
Definition: ERF_NullSurf.H:42
virtual void Define(SolverChoice &)
Definition: ERF_NullSurf.H:17
virtual void Advance(const amrex::Real &)
Definition: ERF_NullSurf.H:26
virtual amrex::MultiFab * Lsm_Flux_Ptr(const int &)
Definition: ERF_NullSurf.H:50
virtual void Update_Micro_Vars(amrex::MultiFab &)
Definition: ERF_NullSurf.H:30
NullSurf()
Definition: ERF_NullSurf.H:11
amrex::Geometry m_lsm_geom
Definition: ERF_NullSurf.H:69
virtual std::string Lsm_VarName(const int &)
Definition: ERF_NullSurf.H:62
virtual int Lsm_Data_Size()
Definition: ERF_NullSurf.H:58
std::string varname
Definition: ERF_NullSurf.H:70
virtual void Update_State_Vars(amrex::MultiFab &)
Definition: ERF_NullSurf.H:34
virtual amrex::Geometry Lsm_Geom()
Definition: ERF_NullSurf.H:54
virtual ~NullSurf()=default
Definition: ERF_DataStruct.H:78