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:
24  JFunctor (int dir, int lev,
25  amrex::IntVect crse_ratio,
26  bool convertRZmodes2cartesian=true,
27  bool deposit_current=false, int ncomp=1);
37  void operator()(amrex::MultiFab& mf_dst, int dcomp, int /*i_buffer=0*/) const override;
38 private:
40  const int m_dir;
42  int m_lev;
47 };
48 
49 #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:44
bool m_deposit_current
Definition: JFunctor.H:46
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:26
int m_lev
Definition: JFunctor.H:42
JFunctor(int dir, int lev, amrex::IntVect crse_ratio, bool convertRZmodes2cartesian=true, bool deposit_current=false, int ncomp=1)
Definition: JFunctor.cpp:16
const int m_dir
Definition: JFunctor.H:40