Block-Structured AMR Software Framework
amrex::NeighborList< ParticleType > Class Template Reference

#include <AMReX_NeighborList.H>

Public Member Functions

template<class PTile , class CheckPair >
void build (PTile &ptile, const amrex::Box &bx, const amrex::Geometry &geom, CheckPair &&check_pair, int num_cells=1)
 
template<class PTile , class CheckPair >
void build (PTile &ptile, CheckPair &&check_pair, const Gpu::DeviceVector< int > &off_bins_v, const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &dxi_v, const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &plo_v, const Gpu::DeviceVector< Dim3 > &lo_v, const Gpu::DeviceVector< Dim3 > &hi_v, int num_cells=1, int num_bin_types=1, int *bin_type_array=nullptr)
 
template<class SrcTile , class TargetTile , class CheckPair >
void build (SrcTile &src_tile, TargetTile &target_tile, CheckPair const &check_pair, const Gpu::DeviceVector< int > &off_bins_v, const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &dxi_v, const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &plo_v, const Gpu::DeviceVector< Dim3 > &lo_v, const Gpu::DeviceVector< Dim3 > &hi_v, int num_cells=1, int num_bin_types=1, int *bin_type_array=nullptr)
 
NeighborData< ParticleType > data ()
 
int numParticles () const
 
Gpu::DeviceVector< unsigned int > & GetOffsets ()
 
const Gpu::DeviceVector< unsigned int > & GetOffsets () const
 
Gpu::DeviceVector< unsigned int > & GetCounts ()
 
const Gpu::DeviceVector< unsigned int > & GetCounts () const
 
Gpu::DeviceVector< unsigned int > & GetList ()
 
const Gpu::DeviceVector< unsigned int > & GetList () const
 
void print ()
 

Protected Attributes

ParticleType * m_pstruct
 
Gpu::DeviceVector< unsigned intm_nbor_offsets
 
Gpu::DeviceVector< unsigned intm_nbor_list
 
Gpu::DeviceVector< unsigned intm_nbor_counts
 
DenseBins< ParticleType > m_bins
 

Member Function Documentation

◆ build() [1/3]

template<class ParticleType >
template<class PTile , class CheckPair >
void amrex::NeighborList< ParticleType >::build ( PTile &  ptile,
CheckPair &&  check_pair,
const Gpu::DeviceVector< int > &  off_bins_v,
const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &  dxi_v,
const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &  plo_v,
const Gpu::DeviceVector< Dim3 > &  lo_v,
const Gpu::DeviceVector< Dim3 > &  hi_v,
int  num_cells = 1,
int  num_bin_types = 1,
int bin_type_array = nullptr 
)
inline

◆ build() [2/3]

template<class ParticleType >
template<class PTile , class CheckPair >
void amrex::NeighborList< ParticleType >::build ( PTile &  ptile,
const amrex::Box bx,
const amrex::Geometry geom,
CheckPair &&  check_pair,
int  num_cells = 1 
)
inline

◆ build() [3/3]

template<class ParticleType >
template<class SrcTile , class TargetTile , class CheckPair >
void amrex::NeighborList< ParticleType >::build ( SrcTile &  src_tile,
TargetTile &  target_tile,
CheckPair const &  check_pair,
const Gpu::DeviceVector< int > &  off_bins_v,
const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &  dxi_v,
const Gpu::DeviceVector< GpuArray< Real, AMREX_SPACEDIM >> &  plo_v,
const Gpu::DeviceVector< Dim3 > &  lo_v,
const Gpu::DeviceVector< Dim3 > &  hi_v,
int  num_cells = 1,
int  num_bin_types = 1,
int bin_type_array = nullptr 
)
inline

◆ data()

template<class ParticleType >
NeighborData<ParticleType> amrex::NeighborList< ParticleType >::data ( )
inline

◆ GetCounts() [1/2]

template<class ParticleType >
Gpu::DeviceVector<unsigned int>& amrex::NeighborList< ParticleType >::GetCounts ( )
inline

◆ GetCounts() [2/2]

template<class ParticleType >
const Gpu::DeviceVector<unsigned int>& amrex::NeighborList< ParticleType >::GetCounts ( ) const
inline

◆ GetList() [1/2]

template<class ParticleType >
Gpu::DeviceVector<unsigned int>& amrex::NeighborList< ParticleType >::GetList ( )
inline

◆ GetList() [2/2]

template<class ParticleType >
const Gpu::DeviceVector<unsigned int>& amrex::NeighborList< ParticleType >::GetList ( ) const
inline

◆ GetOffsets() [1/2]

template<class ParticleType >
Gpu::DeviceVector<unsigned int>& amrex::NeighborList< ParticleType >::GetOffsets ( )
inline

◆ GetOffsets() [2/2]

template<class ParticleType >
const Gpu::DeviceVector<unsigned int>& amrex::NeighborList< ParticleType >::GetOffsets ( ) const
inline

◆ numParticles()

template<class ParticleType >
int amrex::NeighborList< ParticleType >::numParticles ( ) const
inline

◆ print()

template<class ParticleType >
void amrex::NeighborList< ParticleType >::print ( )
inline

Member Data Documentation

◆ m_bins

template<class ParticleType >
DenseBins<ParticleType> amrex::NeighborList< ParticleType >::m_bins
protected

◆ m_nbor_counts

template<class ParticleType >
Gpu::DeviceVector<unsigned int> amrex::NeighborList< ParticleType >::m_nbor_counts
protected

◆ m_nbor_list

template<class ParticleType >
Gpu::DeviceVector<unsigned int> amrex::NeighborList< ParticleType >::m_nbor_list
protected

◆ m_nbor_offsets

template<class ParticleType >
Gpu::DeviceVector<unsigned int> amrex::NeighborList< ParticleType >::m_nbor_offsets
protected

◆ m_pstruct

template<class ParticleType >
ParticleType* amrex::NeighborList< ParticleType >::m_pstruct
protected

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