WarpX
JFunctor.H
Go to the documentation of this file.
1 #ifndef WARPX_JFUNCTOR_H_
2 #define WARPX_JFUNCTOR_H_
3 
4 #include "ComputeDiagFunctor.H"
5 
6 #include <AMReX_BaseFwd.H>
7 
11 class JFunctor final : public ComputeDiagFunctor
12 {
13 public:
26  JFunctor (int dir, int lev,
27  amrex::IntVect crse_ratio,
28  bool convertRZmodes2cartesian=true,
29  bool deposit_current=false, int ncomp=1);
39  void operator()(amrex::MultiFab& mf_dst, int dcomp, int /*i_buffer=0*/) const override;
40 private:
42  const int m_dir;
44  int m_lev;
49 };
50 
51 #endif // WARPX_JFUNCTOR_H_
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:17
Functor to cell-center MF for current density and store result in mf_out.
Definition: JFunctor.H:12
bool m_convertRZmodes2cartesian
Definition: JFunctor.H:46
bool m_deposit_current
Definition: JFunctor.H:48
void operator()(amrex::MultiFab &mf_dst, int dcomp, int) const override
Cell-center m_mf_src and write the result in mf_dst.
Definition: JFunctor.cpp:30
int m_lev
Definition: JFunctor.H:44
JFunctor(int dir, int lev, amrex::IntVect crse_ratio, bool convertRZmodes2cartesian=true, bool deposit_current=false, int ncomp=1)
Definition: JFunctor.cpp:20
const int m_dir
Definition: JFunctor.H:42