ARTEMIS
CellCenterFunctor.H
Go to the documentation of this file.
1 #ifndef WARPX_CELLCENTERFUNCTOR_H_
2 #define WARPX_CELLCENTERFUNCTOR_H_
3 
4 #include "ComputeDiagFunctor.H"
5 
6 #include <AMReX_BaseFwd.H>
7 
11 class
13 {
14 public:
27  CellCenterFunctor(const amrex::MultiFab * const mf_src, const int lev,
28  const amrex::IntVect crse_ratio,
29  bool convertRZmodes2cartesian=true, int ncomp=1, int scomp=0);
39  virtual void operator()(amrex::MultiFab& mf_dst, int dcomp, const int /*i_buffer=0*/) const override;
40 
45  int sComp () const { return m_scomp; }
46 
47 private:
49  amrex::MultiFab const * const m_mf_src = nullptr;
50  int m_lev;
54  int m_scomp;
55 };
56 
57 #endif // WARPX_CELLCENTERFUNCTOR_H_
Functor to cell-center MF and store result in mf_out.
Definition: CellCenterFunctor.H:13
int sComp() const
return m_scomp m_scomp is the starting component of mf_src from which values are averaged/interpolate...
Definition: CellCenterFunctor.H:45
int m_lev
Definition: CellCenterFunctor.H:50
int m_scomp
Definition: CellCenterFunctor.H:54
bool m_convertRZmodes2cartesian
Definition: CellCenterFunctor.H:52
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:15