WarpX
DivEFunctor.H
Go to the documentation of this file.
1 #ifndef WARPX_DIVEFUNCTOR_H_
2 #define WARPX_DIVEFUNCTOR_H_
3 
4 #include "ComputeDiagFunctor.H"
5 
6 #include <AMReX_BaseFwd.H>
7 
8 #include <array>
9 
13 class
14 DivEFunctor final : public ComputeDiagFunctor
15 {
16 public:
25  DivEFunctor(std::array<const amrex::MultiFab* const, 3> arr_mf_src, int lev, amrex::IntVect crse_ratio,
26  bool convertRZmodes2cartesian=true, int ncomp=1);
27 
34  void operator()(amrex::MultiFab& mf_dst, int dcomp, int /*i_buffer=0*/) const override;
35 private:
37  std::array<const amrex::MultiFab * const, 3> m_arr_mf_src;
38  int const m_lev;
41 };
42 
43 #endif // WARPX_DIVEFUNCTOR_H_
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:18
Functor to compute divE into mf_out.
Definition: DivEFunctor.H:15
bool m_convertRZmodes2cartesian
Definition: DivEFunctor.H:40
int const m_lev
Definition: DivEFunctor.H:38
std::array< const amrex::MultiFab *const, 3 > m_arr_mf_src
Definition: DivEFunctor.H:37