WarpX
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 
9 class
10 RhoFunctor final : public ComputeDiagFunctor
11 {
12 
13 public:
14 
27  RhoFunctor (const int lev,
28  const amrex::IntVect crse_ratio,
29  const int species_index = -1,
30  bool convertRZmodes2cartesian = true,
31  const int ncomp = 1);
32 
39  virtual void operator() ( amrex::MultiFab& mf_dst, const int dcomp, const int /*i_buffer=0*/ ) const override;
40 
41 private:
42 
43  // Level on which source MultiFab mf_src is defined in RZ geometry
44  int const m_lev;
45 
46  // Species index to dump rho per species
47  const int m_species_index;
48 
49  // Whether to average all modes into one component in RZ geometry
51 };
52 
53 #endif // WARPX_RHOFUNCTOR_H_
int const m_lev
Definition: RhoFunctor.H:44
Functor to compute charge density rho into mf_out.
Definition: RhoFunctor.H:9
const int m_species_index
Definition: RhoFunctor.H:47
bool m_convertRZmodes2cartesian
Definition: RhoFunctor.H:50
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:11