Functor to calculate per-cell averages of particle properties.
Definition: ParticleReductionFunctor.H:16
amrex::ParserExecutor< 6 > m_map_fn
Definition: ParticleReductionFunctor.H:55
amrex::ParserExecutor< 6 > m_filter_fn
Definition: ParticleReductionFunctor.H:57
void operator()(amrex::MultiFab &mf_dst, int dcomp, int) const override
Compute the average of the function m_map_fn over each grid cell.
Definition: ParticleReductionFunctor.cpp:46
bool const m_do_filter
Definition: ParticleReductionFunctor.H:49
ParticleReductionFunctor(const amrex::MultiFab *mf_src, int lev, amrex::IntVect crse_ratio, const std::string &fn_str, int ispec, bool do_average, bool do_filter, const std::string &filter_str, int ncomp=1)
Definition: ParticleReductionFunctor.cpp:20
std::unique_ptr< amrex::Parser > m_filter_fn_parser
Definition: ParticleReductionFunctor.H:53
int const m_ispec
Definition: ParticleReductionFunctor.H:47
bool const m_do_average
Definition: ParticleReductionFunctor.H:48
std::unique_ptr< amrex::Parser > m_map_fn_parser
Definition: ParticleReductionFunctor.H:51
int const m_lev
Definition: ParticleReductionFunctor.H:46