cuIBM
A GPU-based Immersed Boundary Method code
generateA.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include "utilities/types.h"
11 
12 
17 namespace kernels
18 {
19 
20 // generate a block of the matrix resulting from implicit terms in the momentum equation
21 __global__
22 void generateA(int *ARows, int *ACols, real *AVals,
23  real *MVals,
24  int *LRows, int *LCols, real *LVals,
25  int ASize, real alpha);
26 
27 // generate a block of the matrix resulting from implicit terms in the momentum equation
28 // for the direct forcing method
29 __global__
30 void generateADirectForcing(int *ARows, int *ACols, real *AVals,
31  real *MVals,
32  int *LRows, int *LCols, real *LVals,
33  int ASize, real alpha, int *tags);
34 
35 } // End of namespace kernels
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
__global__ void generateADirectForcing(int *ARows, int *ACols, real *AVals, real *MVals, int *LRows, int *LCols, real *LVals, int ASize, real alpha, int *tags)
Generates a block of the matrix resulting from implicit terms in the momentum equation for the direct...
Definition: generateA.cu:77
Contains all the custom-written CUDA kernels.
__global__ void generateA(int *ARows, int *ACols, real *AVals, real *MVals, int *LRows, int *LCols, real *LVals, int ASize, real alpha)
Generates a block of the matrix resulting from implicit terms in the momentum equation.
Definition: generateA.cu:38