WarpX
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:
25  CellCenterFunctor(const amrex::MultiFab * mf_src, int lev,
26  amrex::IntVect crse_ratio,
27  bool convertRZmodes2cartesian=true, int ncomp=1);
37  void operator()(amrex::MultiFab& mf_dst, int dcomp, int /*i_buffer=0*/) const override;
38 private:
40  amrex::MultiFab const * const m_mf_src = nullptr;
41  int m_lev;
44 };
45 
46 #endif // WARPX_CELLCENTERFUNCTOR_H_
Functor to cell-center MF and store result in mf_out.
Definition: CellCenterFunctor.H:13
int m_lev
Definition: CellCenterFunctor.H:41
bool m_convertRZmodes2cartesian
Definition: CellCenterFunctor.H:43
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:18