WarpX
Interpolate.H
Go to the documentation of this file.
1 #ifndef WARPX_INTERPOLATE_H_
2 #define WARPX_INTERPOLATE_H_
3 
4 #include <AMReX_REAL.H>
5 
6 #include <AMReX_BaseFwd.H>
7 
8 #include <array>
9 #include <memory>
10 
11 namespace Interpolate
12 {
13  using namespace amrex;
14 
18  std::unique_ptr<MultiFab>
20  const MultiFab& F_cp, const MultiFab& F_fp,
21  const DistributionMapping& dm, amrex::IntVect r_ratio,
22  const Real* /*dx*/, IntVect ngrow );
23 
27  std::array<std::unique_ptr<MultiFab>, 3>
29  const MultiFab* Fx_cp,
30  const MultiFab* Fy_cp,
31  const MultiFab* Fz_cp,
32  const MultiFab* Fx_fp,
33  const MultiFab* Fy_fp,
34  const MultiFab* Fz_fp,
35  const DistributionMapping& dm, amrex::IntVect r_ratio,
36  const Real* dx, IntVect ngrow );
37 
38 }
39 
40 #endif // WARPX_INTERPOLATE_H_
Definition: Interpolate.cpp:24
std::array< std::unique_ptr< MultiFab >, 3 > getInterpolatedVector(const MultiFab *Fx_cp, const MultiFab *Fy_cp, const MultiFab *Fz_cp, const MultiFab *Fx_fp, const MultiFab *Fy_fp, const MultiFab *Fz_fp, const DistributionMapping &dm, const amrex::IntVect r_ratio, const Real *, const IntVect ngrow)
Samples/Interpolates the coarse vector multifab F*_cp on the fine grid associated with the fine multi...
Definition: Interpolate.cpp:71
std::unique_ptr< MultiFab > getInterpolatedScalar(const MultiFab &F_cp, const MultiFab &F_fp, const DistributionMapping &dm, const amrex::IntVect r_ratio, const Real *, const IntVect ngrow)
Samples/Interpolates the coarse scalar multifab F_cp on the fine grid associated with the fine multif...
Definition: Interpolate.cpp:28
tuple dx
lab frame
Definition: stencil.py:429