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
12 JFunctor final : public ComputeDiagFunctor
13 {
14 public:
25  JFunctor (int dir, int lev,
26  amrex::IntVect crse_ratio,
27  bool convertRZmodes2cartesian=true,
28  bool deposit_current=false, int ncomp=1);
38  void operator()(amrex::MultiFab& mf_dst, int dcomp, int /*i_buffer=0*/) const override;
39 private:
41  const int m_dir;
43  int m_lev;
48 };
49 
50 #endif // WARPX_JFUNCTOR_H_
Functor to compute a diagnostic and store the result in existing MultiFab.
Definition: ComputeDiagFunctor.H:18
Functor to cell-center MF for current density and store result in mf_out.
Definition: JFunctor.H:13
bool m_convertRZmodes2cartesian
Definition: JFunctor.H:45
bool m_deposit_current
Definition: JFunctor.H:47
int m_lev
Definition: JFunctor.H:43
const int m_dir
Definition: JFunctor.H:41