cuIBM
A GPU-based Immersed Boundary Method code
generateVelB.cu
Go to the documentation of this file.
1 
7 #include "generateVelB.h"
8 
9 
14 namespace kernels
15 {
16 
25 __global__
26 void fill_velB(real *velB, real *uB, real *vB, int totalPoints)
27 {
28  int k = threadIdx.x + blockIdx.x*blockDim.x;
29  if(k<totalPoints)
30  {
31  velB[k] = uB[k];
32  velB[k + totalPoints] = vB[k];
33  }
34 } // fill_velB
35 
36 } // End of namespace kernels
__global__ void fill_velB(real *velB, real *uB, real *vB, int totalPoints)
Stores an element of the u- and v- body-velocities into one single array.
Definition: generateVelB.cu:26
double real
Is a float or a double depending on the machine precision.
Definition: types.h:116
Declaration of the kernels required to generate body-velocities.
Contains all the custom-written CUDA kernels.