WarpX
PartPerCellFunctor.H
Go to the documentation of this file.
1 #ifndef WARPX_PARTPERCELLFUNCTOR_H_
2 #define WARPX_PARTPERCELLFUNCTOR_H_
3 
4 #include "ComputeDiagFunctor.H"
5 
6 #include <AMReX_BaseFwd.H>
7 
12 {
13 public:
22  PartPerCellFunctor(const amrex::MultiFab* mf_src, int lev,
23  amrex::IntVect crse_ratio, int ncomp=1);
24 
31  void operator()(amrex::MultiFab& mf_dst, int dcomp, int /*i_buffer=0*/) const override;
32 private:
33  int const m_lev;
34 };
35 
36 #endif // WARPX_PARTPERCELLFUNCTOR_H_
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:17
Functor to cell-center MF and store result in mf_out.
Definition: PartPerCellFunctor.H:12
void operator()(amrex::MultiFab &mf_dst, int dcomp, int) const override
Compute the number of particles per cell directly into mf_dst.
Definition: PartPerCellFunctor.cpp:26
int const m_lev
Definition: PartPerCellFunctor.H:33
PartPerCellFunctor(const amrex::MultiFab *mf_src, int lev, amrex::IntVect crse_ratio, int ncomp=1)
Definition: PartPerCellFunctor.cpp:16