ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
walberla::lbm::accessor::Interpolation Namespace Reference

Functions

static __forceinline__ __device__ void calculate_weights (double const *RESTRICT const pos, int *RESTRICT const corner, double *RESTRICT const weights, uint gl)
 Calculate interpolation weights.
 
__global__ void kernel_get (gpu::FieldAccessor< double > vec, double const *RESTRICT const pos, double *RESTRICT const vel, uint n_pos, uint gl)
 
__global__ void kernel_set (gpu::FieldAccessor< double > vec, double const *RESTRICT const pos, double const *RESTRICT const forces, uint n_pos, uint gl)
 
static dim3 calculate_dim_grid (uint const threads_x, uint const blocks_per_grid_y, uint const threads_per_block)
 
std::vector< double > get (gpu::GPUField< double > const *vec_field, std::vector< double > const &pos, uint gl)
 
void set (gpu::GPUField< double > const *vec_field, std::vector< double > const &pos, std::vector< double > const &forces, uint gl)
 
static __forceinline__ __device__ void calculate_weights (float const *RESTRICT const pos, int *RESTRICT const corner, float *RESTRICT const weights, uint gl)
 Calculate interpolation weights.
 
__global__ void kernel_get (gpu::FieldAccessor< float > vec, float const *RESTRICT const pos, float *RESTRICT const vel, uint n_pos, uint gl)
 
__global__ void kernel_set (gpu::FieldAccessor< float > vec, float const *RESTRICT const pos, float const *RESTRICT const forces, uint n_pos, uint gl)
 
static dim3 calculate_dim_grid (uint const threads_x, uint const blocks_per_grid_y, uint const threads_per_block)
 
std::vector< float > get (gpu::GPUField< float > const *vec_field, std::vector< float > const &pos, uint gl)
 
void set (gpu::GPUField< float > const *vec_field, std::vector< float > const &pos, std::vector< float > const &forces, uint gl)
 

Function Documentation

◆ calculate_dim_grid() [1/2]

static dim3 walberla::lbm::accessor::Interpolation::calculate_dim_grid ( uint const  threads_x,
uint const  blocks_per_grid_y,
uint const  threads_per_block 
)
static

Definition at line 584 of file FieldAccessorsDoublePrecisionCUDA.cu.

Referenced by get(), get(), set(), and set().

◆ calculate_dim_grid() [2/2]

static dim3 walberla::lbm::accessor::Interpolation::calculate_dim_grid ( uint const  threads_x,
uint const  blocks_per_grid_y,
uint const  threads_per_block 
)
static

Definition at line 584 of file FieldAccessorsSinglePrecisionCUDA.cu.

◆ calculate_weights() [1/2]

static __forceinline__ __device__ void walberla::lbm::accessor::Interpolation::calculate_weights ( double const *RESTRICT const  pos,
int *RESTRICT const  corner,
double *RESTRICT const  weights,
uint  gl 
)
static

Calculate interpolation weights.

Definition at line 490 of file FieldAccessorsDoublePrecisionCUDA.cu.

Referenced by kernel_get(), kernel_get(), kernel_set(), and kernel_set().

◆ calculate_weights() [2/2]

static __forceinline__ __device__ void walberla::lbm::accessor::Interpolation::calculate_weights ( float const *RESTRICT const  pos,
int *RESTRICT const  corner,
float *RESTRICT const  weights,
uint  gl 
)
static

Calculate interpolation weights.

Definition at line 490 of file FieldAccessorsSinglePrecisionCUDA.cu.

◆ get() [1/2]

std::vector< double > walberla::lbm::accessor::Interpolation::get ( gpu::GPUField< double > const *  vec_field,
std::vector< double > const &  pos,
uint  gl 
)

◆ get() [2/2]

std::vector< float > walberla::lbm::accessor::Interpolation::get ( gpu::GPUField< float > const *  vec_field,
std::vector< float > const &  pos,
uint  gl 
)

Definition at line 596 of file FieldAccessorsSinglePrecisionCUDA.cu.

References calculate_dim_grid().

◆ kernel_get() [1/2]

__global__ void walberla::lbm::accessor::Interpolation::kernel_get ( gpu::FieldAccessor< double >  vec,
double const *RESTRICT const  pos,
double *RESTRICT const  vel,
uint  n_pos,
uint  gl 
)

Definition at line 506 of file FieldAccessorsDoublePrecisionCUDA.cu.

References calculate_weights(), and weight().

◆ kernel_get() [2/2]

__global__ void walberla::lbm::accessor::Interpolation::kernel_get ( gpu::FieldAccessor< float >  vec,
float const *RESTRICT const  pos,
float *RESTRICT const  vel,
uint  n_pos,
uint  gl 
)

Definition at line 506 of file FieldAccessorsSinglePrecisionCUDA.cu.

References calculate_weights(), and weight().

◆ kernel_set() [1/2]

__global__ void walberla::lbm::accessor::Interpolation::kernel_set ( gpu::FieldAccessor< double >  vec,
double const *RESTRICT const  pos,
double const *RESTRICT const  forces,
uint  n_pos,
uint  gl 
)

Definition at line 543 of file FieldAccessorsDoublePrecisionCUDA.cu.

References calculate_weights(), and weight().

◆ kernel_set() [2/2]

__global__ void walberla::lbm::accessor::Interpolation::kernel_set ( gpu::FieldAccessor< float >  vec,
float const *RESTRICT const  pos,
float const *RESTRICT const  forces,
uint  n_pos,
uint  gl 
)

Definition at line 543 of file FieldAccessorsSinglePrecisionCUDA.cu.

References calculate_weights(), and weight().

◆ set() [1/2]

void walberla::lbm::accessor::Interpolation::set ( gpu::GPUField< double > const *  vec_field,
std::vector< double > const &  pos,
std::vector< double > const &  forces,
uint  gl 
)

◆ set() [2/2]

void walberla::lbm::accessor::Interpolation::set ( gpu::GPUField< float > const *  vec_field,
std::vector< float > const &  pos,
std::vector< float > const &  forces,
uint  gl 
)

Definition at line 617 of file FieldAccessorsSinglePrecisionCUDA.cu.

References calculate_dim_grid().