28#ifndef VELOCITY_MESH_PARAMETERS_H
29#define VELOCITY_MESH_PARAMETERS_H
38 #include "include/splitvector/splitvec.h"
43#define MAX_VMESH_PARAMETERS_COUNT 32
95 std::array<vmesh::MeshParameters,MAX_VMESH_PARAMETERS_COUNT> *
velocityMeshes;
107 __device__ __constant__
MeshWrapper* meshWrapperDevInstance;
111 struct meshWrapperDevRegistor {
112 meshWrapperDevRegistor(MeshWrapper*&);
114 static meshWrapperDevRegistor meshWrapperDevRegistorInstance(meshWrapperDevInstance);
116 void deallocateMeshWrapper();
122 #if (defined(__CUDA_ARCH__) || defined(__HIP_DEVICE_COMPILE__))
123 return gpu_getMeshWrapper();
134 printf(
"\nPrintout of velocity mesh %d \n",meshIndex);
138 printf(
"Mesh size\n");
140 printf(
"Block size\n");
142 printf(
"Mesh limits \n");
146 printf(
"Derived mesh parameters \n");
ARCH_HOSTDEV void printVelocityMesh(const uint meshIndex)
MeshWrapper * host_getMeshWrapper()
void allocateMeshWrapper()
ARCH_HOSTDEV MeshWrapper * getMeshWrapper()
vmesh::LocalID gridLength[3]
vmesh::LocalID blockLength[3]
vmesh::LocalID max_velocity_blocks
MeshWrapper(const MeshWrapper &other)
MeshWrapper & operator=(const MeshWrapper &other)
void initVelocityMeshes(const uint nMeshes)
std::vector< vmesh::MeshParameters > * velocityMeshesCreation
std::array< vmesh::MeshParameters, MAX_VMESH_PARAMETERS_COUNT > * velocityMeshes