WarpX
Public Member Functions | Private Attributes | List of all members
fillBufferFlag Class Reference

Functor that fills the elements of the particle array inexflag with the value of the spatial array bmasks, at the corresponding particle position. More...

#include <SortingUtils.H>

Public Member Functions

 fillBufferFlag (WarpXParIter const &pti, amrex::iMultiFab const *bmasks, amrex::Gpu::DeviceVector< int > &inexflag, amrex::Geometry const &geom)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() (const int i) const
 

Private Attributes

amrex::Box m_domain
 
intm_inexflag_ptr
 
WarpXParticleContainer::ParticleTileType::ConstParticleTileDataType m_ptd
 
amrex::Array4< int const > m_buffer_mask
 
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > m_prob_lo
 
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > m_inv_cell_size
 

Detailed Description

Functor that fills the elements of the particle array inexflag with the value of the spatial array bmasks, at the corresponding particle position.

Parameters
[in]ptiContains information on the particle positions
[in]bmasksSpatial array, that contains a flag indicating whether each cell is part of the gathering/deposition buffers
[out]inexflagVector to be filled with the value of bmasks
[in]geomGeometry object, necessary to locate particles within the array bmasks

Constructor & Destructor Documentation

◆ fillBufferFlag()

fillBufferFlag::fillBufferFlag ( WarpXParIter const &  pti,
amrex::iMultiFab const *  bmasks,
amrex::Gpu::DeviceVector< int > &  inexflag,
amrex::Geometry const &  geom 
)
inline

Member Function Documentation

◆ operator()()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void fillBufferFlag::operator() ( const int  i) const
inline

Member Data Documentation

◆ m_buffer_mask

amrex::Array4<int const> fillBufferFlag::m_buffer_mask
private

◆ m_domain

amrex::Box fillBufferFlag::m_domain
private

◆ m_inexflag_ptr

int* fillBufferFlag::m_inexflag_ptr
private

◆ m_inv_cell_size

amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> fillBufferFlag::m_inv_cell_size
private

◆ m_prob_lo

amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> fillBufferFlag::m_prob_lo
private

◆ m_ptd


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