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