1 #ifndef ERF_PLOTFILE2DINTERPOLATOR_H_
2 #define ERF_PLOTFILE2DINTERPOLATOR_H_
4 #include <AMReX_MultiFab.H>
5 #include <AMReX_GpuQualifiers.H>
6 #include <AMReX_REAL.H>
26 const amrex::MultiFab*
xvel =
nullptr;
27 const amrex::MultiFab*
yvel =
nullptr;
28 const amrex::MultiFab*
zvel =
nullptr;
33 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
38 return (c0 <= target && target <=
c1) ||
39 (
c1 <= target && target <= c0);
42 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
49 if (hi_coord == lo_coord) {
53 const amrex::Real weight = (target - lo_coord) / (hi_coord - lo_coord);
54 return lo_value + weight * (hi_value - lo_value);
60 const amrex::MultiFab&
cons,
61 const amrex::MultiFab* z_phys_cc,
62 const amrex::MultiFab& z_phys_nd,
const int khi
Definition: ERF_InitCustomPert_Bubble.H:21
DiagnosticDescriptor descriptor
Definition: ERF_Plotfile2DCatalog.cpp:100
amrex::Real Real
Definition: ERF_ShocInterface.H:19
@ cons
Definition: ERF_IndexDefines.H:175
real(c_double), private c1
Definition: ERF_module_mp_morr_two_moment.F90:212
Definition: ERF_Plotfile2DCatalog.cpp:7
void fill_sampled_level_component(MultiFab &dst, int dst_comp, const Plotfile2DOutputDescriptor &descriptor, const MultiFab &cons, const MultiFab *z_phys_cc, const MultiFab &z_phys_nd, bool have_z_phys_cc, const MoistureComponentIndices &moisture_indices, int klo, int khi, const SampledWindSources &wind_sources)
Definition: ERF_Plotfile2DInterpolator.cpp:167
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real linear_interpolate(amrex::Real lo_value, amrex::Real hi_value, amrex::Real lo_coord, amrex::Real hi_coord, amrex::Real target) noexcept
Definition: ERF_Plotfile2DInterpolator.H:43
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool sampled_target_is_bracketed(amrex::Real target, amrex::Real c0, amrex::Real c1) noexcept
Definition: ERF_Plotfile2DInterpolator.H:34
Definition: ERF_DataStruct.H:106
Definition: ERF_Plotfile2DSampledLevel.H:53
Definition: ERF_Plotfile2DInterpolator.H:18
int khi
Definition: ERF_Plotfile2DInterpolator.H:20
bool found
Definition: ERF_Plotfile2DInterpolator.H:21
int klo
Definition: ERF_Plotfile2DInterpolator.H:19
Definition: ERF_Plotfile2DInterpolator.H:25
const amrex::MultiFab * sin_alpha
Definition: ERF_Plotfile2DInterpolator.H:30
const amrex::MultiFab * xvel
Definition: ERF_Plotfile2DInterpolator.H:26
const amrex::MultiFab * cos_alpha
Definition: ERF_Plotfile2DInterpolator.H:29
const amrex::MultiFab * zvel
Definition: ERF_Plotfile2DInterpolator.H:28
const amrex::MultiFab * yvel
Definition: ERF_Plotfile2DInterpolator.H:27