OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
copy_ele_sca_array< copy_type, T, Ev, Eqs_sys, sa > Struct Template Reference

Copy scalar elements. More...

Detailed Description

template<typename copy_type, typename T, typename Ev, typename Eqs_sys, int sa>
struct copy_ele_sca_array< copy_type, T, Ev, Eqs_sys, sa >

Copy scalar elements.

Template Parameters
copy_typeType that should be copied
Tproperty id to copy
EvType of source the Vector
sadimensionality of the array 0 is a scalar

Definition at line 24 of file Vector_util.hpp.

#include <Vector_util.hpp>

Static Public Member Functions

template<typename Grid >
static void copy (Grid &grid_dst, const grid_dist_key_dx< Eqs_sys::dims > &key, const Ev &x, size_t lin_id, size_t base_id, size_t gs_size)
 Constructor.
 

Member Function Documentation

◆ copy()

template<typename copy_type , typename T , typename Ev , typename Eqs_sys , int sa>
template<typename Grid >
static void copy_ele_sca_array< copy_type, T, Ev, Eqs_sys, sa >::copy ( Grid &  grid_dst,
const grid_dist_key_dx< Eqs_sys::dims > &  key,
const Ev &  x,
size_t  lin_id,
size_t  base_id,
size_t  gs_size 
)
inlinestatic

Constructor.

It define the copy parameters.

Parameters
keydestination position
grid_dstgrid destination
xSource vector
lin_idsource element inside the vector
gs_sizegrid size
base_idprocessor id start

Definition at line 38 of file Vector_util.hpp.


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