Block-Structured AMR Software Framework
amrex::BinMapper Struct Reference

#include <AMReX_ParticleUtil.H>

Public Member Functions

 BinMapper (const int *off_bins_p, const GpuArray< Real, AMREX_SPACEDIM > *dxi_p, const GpuArray< Real, AMREX_SPACEDIM > *plo_p, const Dim3 *lo_p, const Dim3 *hi_p, int *bin_type_array=nullptr)
 
template<typename T >
AMREX_GPU_HOST_DEVICE unsigned int operator() (const T &ptd, int i) const
 

Private Attributes

const intm_off_bins_p
 
const GpuArray< Real, AMREX_SPACEDIM > * m_dxi_p
 
const GpuArray< Real, AMREX_SPACEDIM > * m_plo_p
 
const Dim3m_lo_p
 
const Dim3m_hi_p
 
intm_bin_type_array
 

Constructor & Destructor Documentation

◆ BinMapper()

amrex::BinMapper::BinMapper ( const int off_bins_p,
const GpuArray< Real, AMREX_SPACEDIM > *  dxi_p,
const GpuArray< Real, AMREX_SPACEDIM > *  plo_p,
const Dim3 lo_p,
const Dim3 hi_p,
int bin_type_array = nullptr 
)
inline

Member Function Documentation

◆ operator()()

template<typename T >
AMREX_GPU_HOST_DEVICE unsigned int amrex::BinMapper::operator() ( const T &  ptd,
int  i 
) const
inline

Member Data Documentation

◆ m_bin_type_array

int* amrex::BinMapper::m_bin_type_array
private

◆ m_dxi_p

const GpuArray<Real,AMREX_SPACEDIM>* amrex::BinMapper::m_dxi_p
private

◆ m_hi_p

const Dim3* amrex::BinMapper::m_hi_p
private

◆ m_lo_p

const Dim3* amrex::BinMapper::m_lo_p
private

◆ m_off_bins_p

const int* amrex::BinMapper::m_off_bins_p
private

◆ m_plo_p

const GpuArray<Real,AMREX_SPACEDIM>* amrex::BinMapper::m_plo_p
private

The documentation for this struct was generated from the following file: