WarpX
Loading...
Searching...
No Matches
PartPerCellFunctor.H
Go to the documentation of this file.
1#ifndef WARPX_PARTPERCELLFUNCTOR_H_
2#define WARPX_PARTPERCELLFUNCTOR_H_
3
5
6#include <AMReX_BaseFwd.H>
7
12{
13public:
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;
32private:
33 int m_lev;
34};
35
36#endif // WARPX_PARTPERCELLFUNCTOR_H_
ComputeDiagFunctor(int ncomp, amrex::IntVect crse_ratio)
Definition ComputeDiagFunctor.H:19
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
PartPerCellFunctor(const amrex::MultiFab *mf_src, int lev, amrex::IntVect crse_ratio, int ncomp=1)
Definition PartPerCellFunctor.cpp:16
int m_lev
Definition PartPerCellFunctor.H:33
IntVectND< 3 > IntVect