4 #ifndef ERF_PLOTFILE2DINTERPOLATOR_H_
5 #define ERF_PLOTFILE2DINTERPOLATOR_H_
7 #include <AMReX_MultiFab.H>
8 #include <AMReX_GpuQualifiers.H>
9 #include <AMReX_REAL.H>
29 const amrex::MultiFab*
xvel =
nullptr;
30 const amrex::MultiFab*
yvel =
nullptr;
31 const amrex::MultiFab*
zvel =
nullptr;
36 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
41 return (c0 <= target && target <=
c1) ||
42 (
c1 <= target && target <= c0);
45 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
52 if (hi_coord == lo_coord) {
56 const amrex::Real weight = (target - lo_coord) / (hi_coord - lo_coord);
57 return lo_value + weight * (hi_value - lo_value);
63 const amrex::MultiFab&
cons,
64 const amrex::MultiFab* z_phys_cc,
65 const amrex::MultiFab& z_phys_nd,
const int khi
Definition: ERF_InitCustomPert_Bubble.H:21
DiagnosticDescriptor descriptor
Definition: ERF_Plotfile2DCatalog.cpp:104
amrex::Real Real
Definition: ERF_ShocInterface.H:19
@ cons
Definition: ERF_IndexDefines.H:176
real(c_double), private c1
Definition: ERF_module_mp_morr_two_moment.F90:212
Definition: ERF_Plotfile2DCatalog.cpp:10
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:170
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:46
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:37
Component indices for moisture species in the conserved state.
Definition: ERF_DataStruct.H:166
Definition: ERF_Plotfile2DSampledLevel.H:56
Definition: ERF_Plotfile2DInterpolator.H:21
int khi
Definition: ERF_Plotfile2DInterpolator.H:23
bool found
Definition: ERF_Plotfile2DInterpolator.H:24
int klo
Definition: ERF_Plotfile2DInterpolator.H:22
Definition: ERF_Plotfile2DInterpolator.H:28
const amrex::MultiFab * sin_alpha
Definition: ERF_Plotfile2DInterpolator.H:33
const amrex::MultiFab * xvel
Definition: ERF_Plotfile2DInterpolator.H:29
const amrex::MultiFab * cos_alpha
Definition: ERF_Plotfile2DInterpolator.H:32
const amrex::MultiFab * zvel
Definition: ERF_Plotfile2DInterpolator.H:31
const amrex::MultiFab * yvel
Definition: ERF_Plotfile2DInterpolator.H:30