WarpX
Toggle main menu visibility
Loading...
Searching...
No Matches
Source
Diagnostics
ComputeDiagFunctors
CellCenterFunctor.H
Go to the documentation of this file.
1
#ifndef WARPX_CELLCENTERFUNCTOR_H_
2
#define WARPX_CELLCENTERFUNCTOR_H_
3
4
#include "
ComputeDiagFunctor.H
"
5
6
#include <
AMReX_BaseFwd.H
>
7
11
class
CellCenterFunctor
final :
public
ComputeDiagFunctor
12
{
13
public
:
24
CellCenterFunctor
(
const
amrex::MultiFab
* mf_src,
int
lev,
25
amrex::IntVect
crse_ratio,
26
bool
convertRZmodes2cartesian=
true
,
int
ncomp=1);
36
void
operator()
(
amrex::MultiFab
& mf_dst,
int
dcomp,
int
/*i_buffer=0*/
)
const override
;
37
private
:
39
const
amrex::MultiFab
*
m_mf_src
=
nullptr
;
40
int
m_lev
;
42
bool
m_convertRZmodes2cartesian
;
43
};
44
45
#endif
// WARPX_CELLCENTERFUNCTOR_H_
AMReX_BaseFwd.H
ComputeDiagFunctor.H
CellCenterFunctor::CellCenterFunctor
CellCenterFunctor(const amrex::MultiFab *mf_src, int lev, amrex::IntVect crse_ratio, bool convertRZmodes2cartesian=true, int ncomp=1)
Definition
CellCenterFunctor.cpp:10
CellCenterFunctor::m_lev
int m_lev
Definition
CellCenterFunctor.H:40
CellCenterFunctor::m_convertRZmodes2cartesian
bool m_convertRZmodes2cartesian
Definition
CellCenterFunctor.H:42
CellCenterFunctor::operator()
void operator()(amrex::MultiFab &mf_dst, int dcomp, int) const override
Cell-center m_mf_src and write the result in mf_dst.
Definition
CellCenterFunctor.cpp:18
CellCenterFunctor::m_mf_src
const amrex::MultiFab * m_mf_src
Definition
CellCenterFunctor.H:39
ComputeDiagFunctor::ComputeDiagFunctor
ComputeDiagFunctor(int ncomp, amrex::IntVect crse_ratio)
Definition
ComputeDiagFunctor.H:19
amrex::MultiFab
amrex::IntVect
IntVectND< 3 > IntVect
Generated by
1.17.0