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