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