WarpX
Loading...
Searching...
No Matches
CellCenterFunctor.H
Go to the documentation of this file.
1#ifndef WARPX_CELLCENTERFUNCTOR_H_
2#define WARPX_CELLCENTERFUNCTOR_H_
3
5
6#include <AMReX_BaseFwd.H>
7
12{
13public:
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;
37private:
39 const amrex::MultiFab* m_mf_src = nullptr;
40 int m_lev;
43};
44
45#endif // WARPX_CELLCENTERFUNCTOR_H_
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
const amrex::MultiFab * m_mf_src
Definition CellCenterFunctor.H:39
ComputeDiagFunctor(int ncomp, amrex::IntVect crse_ratio)
Definition ComputeDiagFunctor.H:19
IntVectND< 3 > IntVect