Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
cpu_acc_load_blocks.hpp
Go to the documentation of this file.
1#ifndef CPU_ACC_LOAD_BLOCKS_H
2#define CPU_ACC_LOAD_BLOCKS_H
3
4#include "../common.h"
6#include "vec.h"
7
8
9//index in the temporary and padded column data values array. Each
10//column has an empty block in ether end.
11#define i_pcolumnv(j, k, k_block, num_k_blocks) ( ((j) / ( VECL / WID)) * WID * ( num_k_blocks + 2) + (k) + ( k_block + 1 ) * WID )
12#define i_pcolumnv_b(planeVectorIndex, k, k_block, num_k_blocks) ( planeVectorIndex * WID * ( num_k_blocks + 2) + (k) + ( k_block + 1 ) * WID )
13
16 vmesh::VelocityBlockContainer* blockContainer,
17 const vmesh::GlobalID* blocks,
18 const vmesh::LocalID n_blocks,
19 const int dimension,
20 Vec* __restrict__ values);
21
22
23
24#endif
void loadColumnBlockData(const vmesh::VelocityMesh *vmesh, vmesh::VelocityBlockContainer *blockContainer, const vmesh::GlobalID *blocks, const vmesh::LocalID n_blocks, const int dimension, Vec *__restrict__ values)
uint32_t LocalID
Definition definitions.h:60
uint32_t GlobalID
Definition definitions.h:59
An interface to a type with floating point values.