cuIBM
A GPU-based Immersed Boundary Method code
generateM.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "utilities/types.h"
10 
11 
16 namespace kernels
17 {
18 
19 // compute element of the mass matrix and its inverse for a x-velocity node
20 __global__
21 void fillM_u(int *MRows, int *MCols, real *MVals, int *MinvRows, int *MinvCols, real *MinvVals, int nx, int ny, real *dx, real *dy, real dt);
22 
23 // compute element of the mass matrix and its inverse for a y-velocity node
24 __global__
25 void fillM_v(int *MRows, int *MCols, real *MVals, int *MinvRows, int *MinvCols, real *MinvVals, int nx, int ny, real *dx, real *dy, real dt);
26 
27 } // End of namespace kernels
__global__ void fillM_v(int *MRows, int *MCols, real *MVals, int *MinvRows, int *MinvCols, real *MinvVals, int nx, int ny, real *dx, real *dy, real dt)
Computes an element of the mass matrix and its inverse for a y-velocity node.
Definition: generateM.cu:69
Definition of custom types required by the code.
double real
Is a float or a double depending on the machine precision.
Definition: types.h:116
Contains all the custom-written CUDA kernels.
__global__ void fillM_u(int *MRows, int *MCols, real *MVals, int *MinvRows, int *MinvCols, real *MinvVals, int nx, int ny, real *dx, real *dy, real dt)
Computes an element of the mass matrix and its inverse for a x-velocity node.
Definition: generateM.cu:33