OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
ie_ghost_gpu< dim, T, Memory, layout_base > Class Template Reference

structure that store and compute the internal and external local ghost box. Version usable in kernel More...

Detailed Description

template<unsigned int dim, typename T, typename Memory, template< typename > class layout_base>
class ie_ghost_gpu< dim, T, Memory, layout_base >

structure that store and compute the internal and external local ghost box. Version usable in kernel

Template Parameters
dimis the dimensionality of the physical domain we are going to decompose.
Ttype of the space we decompose, Real, Integer, Complex ...
See also
CartDecomposition

Definition at line 118 of file ie_ghost_gpu.cuh.

+ Inheritance diagram for ie_ghost_gpu< dim, T, Memory, layout_base >:

Public Member Functions

 ie_ghost_gpu (CellList_cpu_ker< dim, T, Mem_fast_ker< Memory, memory_traits_lin, int >, shift< dim, T > > geo_cell, openfpm::vector_gpu_ker< Box< dim, T >, layout_base > vb_int_box, openfpm::vector_gpu_ker< aggregate< unsigned int, unsigned int, unsigned int >, layout_base > vb_int)
 
 ie_ghost_gpu (const ie_ghost_gpu< dim, T, Memory, layout_base > &ieg)
 
__device__ unsigned int ghost_processorID_cell (const Point< dim, T > &p)
 Get the cell from the particle position.
 
__device__ unsigned int ghost_processorID_N (const Point< dim, T > &p)
 Get the number of processor a particle must sent.
 
template<typename output_type >
__device__ void ghost_processor_ID (const Point< dim, T > &p, output_type &output, unsigned int base, unsigned int pi)
 Get the number of processor a particle must sent.
 

Private Attributes

CellList_cpu_ker< dim, T, Mem_fast_ker< Memory, memory_traits_lin, int >, shift< dim, T > > geo_cell
 Cell-list that store the geometrical information of the internal ghost boxes.
 
openfpm::vector_gpu_ker< Box< dim, T >, layout_base > vb_int_box
 internal ghost box
 
openfpm::vector_gpu_ker< aggregate< unsigned int, unsigned int, unsigned int >, layout_base > vb_int
 internal ghost box processor infos
 

Constructor & Destructor Documentation

◆ ie_ghost_gpu() [1/2]

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
ie_ghost_gpu< dim, T, Memory, layout_base >::ie_ghost_gpu ( CellList_cpu_ker< dim, T, Mem_fast_ker< Memory, memory_traits_lin, int >, shift< dim, T > >  geo_cell,
openfpm::vector_gpu_ker< Box< dim, T >, layout_base >  vb_int_box,
openfpm::vector_gpu_ker< aggregate< unsigned int, unsigned int, unsigned int >, layout_base >  vb_int 
)
inline

Definition at line 133 of file ie_ghost_gpu.cuh.

◆ ie_ghost_gpu() [2/2]

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
ie_ghost_gpu< dim, T, Memory, layout_base >::ie_ghost_gpu ( const ie_ghost_gpu< dim, T, Memory, layout_base > &  ieg)
inline

Definition at line 141 of file ie_ghost_gpu.cuh.

Member Function Documentation

◆ ghost_processor_ID()

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
template<typename output_type >
__device__ void ie_ghost_gpu< dim, T, Memory, layout_base >::ghost_processor_ID ( const Point< dim, T > &  p,
output_type &  output,
unsigned int  base,
unsigned int  pi 
)
inline

Get the number of processor a particle must sent.

Parameters
pposition of the particle

Definition at line 170 of file ie_ghost_gpu.cuh.

◆ ghost_processorID_cell()

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
__device__ unsigned int ie_ghost_gpu< dim, T, Memory, layout_base >::ghost_processorID_cell ( const Point< dim, T > &  p)
inline

Get the cell from the particle position.

Parameters
pposition of the particle

Definition at line 150 of file ie_ghost_gpu.cuh.

◆ ghost_processorID_N()

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
__device__ unsigned int ie_ghost_gpu< dim, T, Memory, layout_base >::ghost_processorID_N ( const Point< dim, T > &  p)
inline

Get the number of processor a particle must sent.

Parameters
pposition of the particle

Definition at line 160 of file ie_ghost_gpu.cuh.

Field Documentation

◆ geo_cell

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
CellList_cpu_ker<dim,T,Mem_fast_ker<Memory,memory_traits_lin,int>,shift<dim,T> > ie_ghost_gpu< dim, T, Memory, layout_base >::geo_cell
private

Cell-list that store the geometrical information of the internal ghost boxes.

Definition at line 122 of file ie_ghost_gpu.cuh.

◆ vb_int

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
openfpm::vector_gpu_ker<aggregate<unsigned int,unsigned int,unsigned int>,layout_base> ie_ghost_gpu< dim, T, Memory, layout_base >::vb_int
private

internal ghost box processor infos

Definition at line 128 of file ie_ghost_gpu.cuh.

◆ vb_int_box

template<unsigned int dim, typename T , typename Memory , template< typename > class layout_base>
openfpm::vector_gpu_ker<Box<dim, T>,layout_base> ie_ghost_gpu< dim, T, Memory, layout_base >::vb_int_box
private

internal ghost box

Definition at line 125 of file ie_ghost_gpu.cuh.


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