ARTEMIS
RhoFunctor.H
Go to the documentation of this file.
1 #ifndef WARPX_RHOFUNCTOR_H_
2 #define WARPX_RHOFUNCTOR_H_
3 
4 #include "ComputeDiagFunctor.H"
5 
6 #include <AMReX_BaseFwd.H>
7 
11 class
12 RhoFunctor final : public ComputeDiagFunctor
13 {
14 
15 public:
16 
29  RhoFunctor (const int lev,
30  const amrex::IntVect crse_ratio,
31  const int species_index = -1,
32  bool convertRZmodes2cartesian = true,
33  const int ncomp = 1);
34 
41  virtual void operator() ( amrex::MultiFab& mf_dst, const int dcomp, const int /*i_buffer=0*/ ) const override;
42 
43 private:
44 
45  // Level on which source MultiFab mf_src is defined in RZ geometry
46  int const m_lev;
47 
48  // Species index to dump rho per species
49  const int m_species_index;
50 
51  // Whether to average all modes into one component in RZ geometry
53 };
54 
55 #endif // WARPX_RHOFUNCTOR_H_
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:15
Functor to compute charge density rho into mf_out.
Definition: RhoFunctor.H:13
const int m_species_index
Definition: RhoFunctor.H:49
bool m_convertRZmodes2cartesian
Definition: RhoFunctor.H:52
int const m_lev
Definition: RhoFunctor.H:46