chombo-discharge
CD_MFMultigridInterpolator.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_MFMultigridInterpolator_H
13 #define CD_MFMultigridInterpolator_H
14 
15 // Std includes
16 #include <map>
17 
18 // Our includes
20 #include <CD_NamespaceHeader.H>
21 
26 {
27 public:
32 
37  MFMultigridInterpolator(const Vector<RefCountedPtr<EBMultigridInterpolator>>& a_interpolators);
38 
43 
49  operator=(const MFMultigridInterpolator& a_other);
50 
55  void
56  define(const Vector<RefCountedPtr<EBMultigridInterpolator>>& a_interpolators);
57 
62  RefCountedPtr<EBMultigridInterpolator>&
63  getInterpolator(const int a_phase) const;
64 
68  int
69  getGhostCF() const;
70 
71 protected:
75  mutable Vector<RefCountedPtr<EBMultigridInterpolator>> m_interpolators;
76 };
77 
78 #include <CD_NamespaceFooter.H>
79 
80 #endif
Declaration of a class that can interpolate more ghost cells near the coarse-fine boundary near the E...
Wrapper class for holding multifluid EBMultigridInterpolators.
Definition: CD_MFMultigridInterpolator.H:26
RefCountedPtr< EBMultigridInterpolator > & getInterpolator(const int a_phase) const
Get interpolator for specified phase.
Definition: CD_MFMultigridInterpolator.cpp:42
int getGhostCF() const
Get number of filled ghost cells.
Definition: CD_MFMultigridInterpolator.cpp:48
MFMultigridInterpolator()
Weak constructor. Must subsquently call define.
Definition: CD_MFMultigridInterpolator.cpp:16
void define(const Vector< RefCountedPtr< EBMultigridInterpolator >> &a_interpolators)
Define function.
Definition: CD_MFMultigridInterpolator.cpp:36
~MFMultigridInterpolator()
Destructor. Does nothing.
Definition: CD_MFMultigridInterpolator.cpp:24
Vector< RefCountedPtr< EBMultigridInterpolator > > m_interpolators
Interpolators on each phase.
Definition: CD_MFMultigridInterpolator.H:75
MFMultigridInterpolator & operator=(const MFMultigridInterpolator &a_other)
Copy assignment.
Definition: CD_MFMultigridInterpolator.cpp:28