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

Functions

auto get (GhostLayerField< double, uint_t{3u}> const *vec_field, Cell const &cell)
 
void set (GhostLayerField< double, uint_t{3u}> *vec_field, Vector3< double > const &vec, Cell const &cell)
 
void add (GhostLayerField< double, uint_t{3u}> *vec_field, Vector3< double > const &vec, Cell const &cell)
 
void initialize (GhostLayerField< double, uint_t{3u}> *vec_field, Vector3< double > const &vec)
 
void add_to_all (GhostLayerField< double, uint_t{3u}> *vec_field, Vector3< double > const &vec)
 
auto get (GhostLayerField< double, uint_t{3u}> const *vec_field, CellInterval const &ci)
 
void set (GhostLayerField< double, uint_t{3u}> *vec_field, std::vector< double > const &values, CellInterval const &ci)
 
__global__ void kernel_get (gpu::FieldAccessor< double > vec, double *u_out)
 
__global__ void kernel_set (gpu::FieldAccessor< double > vec, double const *RESTRICT u_in)
 
__global__ void kernel_broadcast (gpu::FieldAccessor< double > vec, double const *RESTRICT u_in)
 
__global__ void kernel_add (gpu::FieldAccessor< double > vec, double const *RESTRICT u_in)
 
__global__ void kernel_broadcast_add (gpu::FieldAccessor< double > vec, double const *RESTRICT u_in)
 
Vector3< double > get (gpu::GPUField< double > const *field, Cell const &cell)
 Get value from a single cell.
 
void set (gpu::GPUField< double > *field, Vector3< double > const &vec, Cell const &cell)
 Set value on a single cell.
 
void add (gpu::GPUField< double > *field, Vector3< double > const &vec, Cell const &cell)
 Add value to a single cell.
 
void initialize (gpu::GPUField< double > *field, Vector3< double > const &vec)
 Initialize all cells with the same value.
 
void add_to_all (gpu::GPUField< double > *field, Vector3< double > const &vec)
 Add value to all cells.
 
std::vector< double > get (gpu::GPUField< double > const *vec_field, CellInterval const &ci)
 Get values from a cell interval.
 
void set (gpu::GPUField< double > *vec_field, std::vector< double > const &values, CellInterval const &ci)
 Set values on a cell interval.
 
auto get (GhostLayerField< float, uint_t{3u}> const *vec_field, Cell const &cell)
 
void set (GhostLayerField< float, uint_t{3u}> *vec_field, Vector3< float > const &vec, Cell const &cell)
 
void add (GhostLayerField< float, uint_t{3u}> *vec_field, Vector3< float > const &vec, Cell const &cell)
 
void initialize (GhostLayerField< float, uint_t{3u}> *vec_field, Vector3< float > const &vec)
 
void add_to_all (GhostLayerField< float, uint_t{3u}> *vec_field, Vector3< float > const &vec)
 
auto get (GhostLayerField< float, uint_t{3u}> const *vec_field, CellInterval const &ci)
 
void set (GhostLayerField< float, uint_t{3u}> *vec_field, std::vector< float > const &values, CellInterval const &ci)
 
__global__ void kernel_get (gpu::FieldAccessor< float > vec, float *u_out)
 
__global__ void kernel_set (gpu::FieldAccessor< float > vec, float const *RESTRICT u_in)
 
__global__ void kernel_broadcast (gpu::FieldAccessor< float > vec, float const *RESTRICT u_in)
 
__global__ void kernel_add (gpu::FieldAccessor< float > vec, float const *RESTRICT u_in)
 
__global__ void kernel_broadcast_add (gpu::FieldAccessor< float > vec, float const *RESTRICT u_in)
 
Vector3< float > get (gpu::GPUField< float > const *field, Cell const &cell)
 Get value from a single cell.
 
void set (gpu::GPUField< float > *field, Vector3< float > const &vec, Cell const &cell)
 Set value on a single cell.
 
void add (gpu::GPUField< float > *field, Vector3< float > const &vec, Cell const &cell)
 Add value to a single cell.
 
void initialize (gpu::GPUField< float > *field, Vector3< float > const &vec)
 Initialize all cells with the same value.
 
void add_to_all (gpu::GPUField< float > *field, Vector3< float > const &vec)
 Add value to all cells.
 
std::vector< float > get (gpu::GPUField< float > const *vec_field, CellInterval const &ci)
 Get values from a cell interval.
 
void set (gpu::GPUField< float > *vec_field, std::vector< float > const &values, CellInterval const &ci)
 Set values on a cell interval.
 

Function Documentation

◆ add() [1/4]

void walberla::lbm::accessor::Vector::add ( GhostLayerField< double, uint_t{3u}> *  vec_field,
Vector3< double > const &  vec,
Cell const &  cell 
)
inline

◆ add() [2/4]

void walberla::lbm::accessor::Vector::add ( GhostLayerField< float, uint_t{3u}> *  vec_field,
Vector3< float > const &  vec,
Cell const &  cell 
)
inline

Definition at line 328 of file FieldAccessorsSinglePrecision.h.

◆ add() [3/4]

void walberla::lbm::accessor::Vector::add ( gpu::GPUField< double > *  vec_field,
Vector3< double > const &  vec,
Cell const &  cell 
)

Add value to a single cell.

Definition at line 423 of file FieldAccessorsDoublePrecisionCUDA.cu.

References kernel_add().

◆ add() [4/4]

void walberla::lbm::accessor::Vector::add ( gpu::GPUField< float > *  vec_field,
Vector3< float > const &  vec,
Cell const &  cell 
)

Add value to a single cell.

Definition at line 423 of file FieldAccessorsSinglePrecisionCUDA.cu.

References kernel_add().

◆ add_to_all() [1/4]

void walberla::lbm::accessor::Vector::add_to_all ( GhostLayerField< double, uint_t{3u}> *  vec_field,
Vector3< double > const &  vec 
)
inline

◆ add_to_all() [2/4]

void walberla::lbm::accessor::Vector::add_to_all ( GhostLayerField< float, uint_t{3u}> *  vec_field,
Vector3< float > const &  vec 
)
inline

Definition at line 346 of file FieldAccessorsSinglePrecision.h.

◆ add_to_all() [3/4]

void walberla::lbm::accessor::Vector::add_to_all ( gpu::GPUField< double > *  vec_field,
Vector3< double > const &  vec 
)

Add value to all cells.

Definition at line 448 of file FieldAccessorsDoublePrecisionCUDA.cu.

References kernel_broadcast_add().

◆ add_to_all() [4/4]

void walberla::lbm::accessor::Vector::add_to_all ( gpu::GPUField< float > *  vec_field,
Vector3< float > const &  vec 
)

Add value to all cells.

Definition at line 448 of file FieldAccessorsSinglePrecisionCUDA.cu.

References kernel_broadcast_add().

◆ get() [1/8]

◆ get() [2/8]

auto walberla::lbm::accessor::Vector::get ( GhostLayerField< double, uint_t{3u}> const *  vec_field,
CellInterval const &  ci 
)
inline

Definition at line 356 of file FieldAccessorsDoublePrecision.h.

◆ get() [3/8]

auto walberla::lbm::accessor::Vector::get ( GhostLayerField< float, uint_t{3u}> const *  vec_field,
Cell const &  cell 
)
inline

Definition at line 310 of file FieldAccessorsSinglePrecision.h.

◆ get() [4/8]

auto walberla::lbm::accessor::Vector::get ( GhostLayerField< float, uint_t{3u}> const *  vec_field,
CellInterval const &  ci 
)
inline

Definition at line 356 of file FieldAccessorsSinglePrecision.h.

◆ get() [5/8]

Vector3< double > walberla::lbm::accessor::Vector::get ( gpu::GPUField< double > const *  vec_field,
Cell const &  cell 
)

Get value from a single cell.

Definition at line 395 of file FieldAccessorsDoublePrecisionCUDA.cu.

References kernel_get().

◆ get() [6/8]

std::vector< double > walberla::lbm::accessor::Vector::get ( gpu::GPUField< double > const *  vec_field,
CellInterval const &  ci 
)

Get values from a cell interval.

Definition at line 460 of file FieldAccessorsDoublePrecisionCUDA.cu.

References kernel_get().

◆ get() [7/8]

Vector3< float > walberla::lbm::accessor::Vector::get ( gpu::GPUField< float > const *  vec_field,
Cell const &  cell 
)

Get value from a single cell.

Definition at line 395 of file FieldAccessorsSinglePrecisionCUDA.cu.

References kernel_get().

◆ get() [8/8]

std::vector< float > walberla::lbm::accessor::Vector::get ( gpu::GPUField< float > const *  vec_field,
CellInterval const &  ci 
)

Get values from a cell interval.

Definition at line 460 of file FieldAccessorsSinglePrecisionCUDA.cu.

References kernel_get().

◆ initialize() [1/4]

void walberla::lbm::accessor::Vector::initialize ( GhostLayerField< double, uint_t{3u}> *  vec_field,
Vector3< double > const &  vec 
)
inline

◆ initialize() [2/4]

void walberla::lbm::accessor::Vector::initialize ( GhostLayerField< float, uint_t{3u}> *  vec_field,
Vector3< float > const &  vec 
)
inline

Definition at line 336 of file FieldAccessorsSinglePrecision.h.

◆ initialize() [3/4]

void walberla::lbm::accessor::Vector::initialize ( gpu::GPUField< double > *  vec_field,
Vector3< double > const &  vec 
)

Initialize all cells with the same value.

Definition at line 436 of file FieldAccessorsDoublePrecisionCUDA.cu.

References kernel_broadcast().

◆ initialize() [4/4]

void walberla::lbm::accessor::Vector::initialize ( gpu::GPUField< float > *  vec_field,
Vector3< float > const &  vec 
)

Initialize all cells with the same value.

Definition at line 436 of file FieldAccessorsSinglePrecisionCUDA.cu.

References kernel_broadcast().

◆ kernel_add() [1/2]

__global__ void walberla::lbm::accessor::Vector::kernel_add ( gpu::FieldAccessor< double >  vec,
double const *RESTRICT  u_in 
)

Definition at line 370 of file FieldAccessorsDoublePrecisionCUDA.cu.

References getLinearIndex().

Referenced by add(), and add().

◆ kernel_add() [2/2]

__global__ void walberla::lbm::accessor::Vector::kernel_add ( gpu::FieldAccessor< float >  vec,
float const *RESTRICT  u_in 
)

Definition at line 370 of file FieldAccessorsSinglePrecisionCUDA.cu.

References getLinearIndex().

◆ kernel_broadcast() [1/2]

__global__ void walberla::lbm::accessor::Vector::kernel_broadcast ( gpu::FieldAccessor< double >  vec,
double const *RESTRICT  u_in 
)

Definition at line 359 of file FieldAccessorsDoublePrecisionCUDA.cu.

Referenced by initialize(), and initialize().

◆ kernel_broadcast() [2/2]

__global__ void walberla::lbm::accessor::Vector::kernel_broadcast ( gpu::FieldAccessor< float >  vec,
float const *RESTRICT  u_in 
)

Definition at line 359 of file FieldAccessorsSinglePrecisionCUDA.cu.

◆ kernel_broadcast_add() [1/2]

__global__ void walberla::lbm::accessor::Vector::kernel_broadcast_add ( gpu::FieldAccessor< double >  vec,
double const *RESTRICT  u_in 
)

Definition at line 383 of file FieldAccessorsDoublePrecisionCUDA.cu.

Referenced by add_to_all(), and add_to_all().

◆ kernel_broadcast_add() [2/2]

__global__ void walberla::lbm::accessor::Vector::kernel_broadcast_add ( gpu::FieldAccessor< float >  vec,
float const *RESTRICT  u_in 
)

Definition at line 383 of file FieldAccessorsSinglePrecisionCUDA.cu.

◆ kernel_get() [1/2]

__global__ void walberla::lbm::accessor::Vector::kernel_get ( gpu::FieldAccessor< double >  vec,
double *  u_out 
)

Definition at line 333 of file FieldAccessorsDoublePrecisionCUDA.cu.

References getLinearIndex().

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

◆ kernel_get() [2/2]

__global__ void walberla::lbm::accessor::Vector::kernel_get ( gpu::FieldAccessor< float >  vec,
float *  u_out 
)

Definition at line 333 of file FieldAccessorsSinglePrecisionCUDA.cu.

References getLinearIndex().

◆ kernel_set() [1/2]

__global__ void walberla::lbm::accessor::Vector::kernel_set ( gpu::FieldAccessor< double >  vec,
double const *RESTRICT  u_in 
)

Definition at line 346 of file FieldAccessorsDoublePrecisionCUDA.cu.

References getLinearIndex().

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

◆ kernel_set() [2/2]

__global__ void walberla::lbm::accessor::Vector::kernel_set ( gpu::FieldAccessor< float >  vec,
float const *RESTRICT  u_in 
)

Definition at line 346 of file FieldAccessorsSinglePrecisionCUDA.cu.

References getLinearIndex().

◆ set() [1/8]

void walberla::lbm::accessor::Vector::set ( GhostLayerField< double, uint_t{3u}> *  vec_field,
std::vector< double > const &  values,
CellInterval const &  ci 
)
inline

Definition at line 373 of file FieldAccessorsDoublePrecision.h.

◆ set() [2/8]

void walberla::lbm::accessor::Vector::set ( GhostLayerField< double, uint_t{3u}> *  vec_field,
Vector3< double > const &  vec,
Cell const &  cell 
)
inline

Definition at line 320 of file FieldAccessorsDoublePrecision.h.

◆ set() [3/8]

void walberla::lbm::accessor::Vector::set ( GhostLayerField< float, uint_t{3u}> *  vec_field,
std::vector< float > const &  values,
CellInterval const &  ci 
)
inline

Definition at line 373 of file FieldAccessorsSinglePrecision.h.

◆ set() [4/8]

void walberla::lbm::accessor::Vector::set ( GhostLayerField< float, uint_t{3u}> *  vec_field,
Vector3< float > const &  vec,
Cell const &  cell 
)
inline

Definition at line 320 of file FieldAccessorsSinglePrecision.h.

◆ set() [5/8]

void walberla::lbm::accessor::Vector::set ( gpu::GPUField< double > *  vec_field,
Vector3< double > const &  vec,
Cell const &  cell 
)

Set value on a single cell.

Definition at line 410 of file FieldAccessorsDoublePrecisionCUDA.cu.

References kernel_set().

◆ set() [6/8]

void walberla::lbm::accessor::Vector::set ( gpu::GPUField< double > *  vec_field,
std::vector< double > const &  values,
CellInterval const &  ci 
)

Set values on a cell interval.

Definition at line 474 of file FieldAccessorsDoublePrecisionCUDA.cu.

References kernel_set().

◆ set() [7/8]

void walberla::lbm::accessor::Vector::set ( gpu::GPUField< float > *  vec_field,
Vector3< float > const &  vec,
Cell const &  cell 
)

Set value on a single cell.

Definition at line 410 of file FieldAccessorsSinglePrecisionCUDA.cu.

References kernel_set().

◆ set() [8/8]

void walberla::lbm::accessor::Vector::set ( gpu::GPUField< float > *  vec_field,
std::vector< float > const &  values,
CellInterval const &  ci 
)

Set values on a cell interval.

Definition at line 474 of file FieldAccessorsSinglePrecisionCUDA.cu.

References kernel_set().