ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF::Interpolation Namespace Reference

Functions

template<typename ParticleType >
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void interpolateFields (const ParticleType &p, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &plo, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &dxi, const amrex::Array4< const amrex::Real > *field_arrays, amrex::ParticleReal *result_values, int num_fields)
 Interpolate multiple field values at a particle position using CIC. More...
 

Function Documentation

◆ interpolateFields()

template<typename ParticleType >
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void ERF::Interpolation::interpolateFields ( const ParticleType &  p,
const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &  plo,
const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &  dxi,
const amrex::Array4< const amrex::Real > *  field_arrays,
amrex::ParticleReal *  result_values,
int  num_fields 
)

Interpolate multiple field values at a particle position using CIC.

31  {
32  for (int i = 0; i < num_fields; ++i) {
33  cic_interpolate(p, plo, dxi, field_arrays[i], &result_values[i], 1);
34  }
35 }
Real * p
Definition: ERF_InitCustomPert_SquallLine.H:61