jacobi_C-Style
getmatrix.h
Go to the documentation of this file.
1 #ifndef GETMATRIX_FILE
2 #define GETMATRIX_FILE
3 
18 void Get_Matrix_Pattern(int const nelem, int const ndof_e, int const *const ia,
19  int &nnz, int* &id, int* &ik, double* &sk);
20 
21 
22 
31 void CalcElem(int const ial[3], double const xc[], double ske[3][3], double fe[3]);
32 
45 void AddElem(int const ial[3], double const ske[3][3], double const fe[3],
46  int const id[], int const ik[], double sk[], double f[]);
47 
48 
49 
57 void DebugMatrix(int const nnode, int const id[], int const ik[], double const sk[]);
58 
64 void DebugVector(int const nnode, double const v[]);
65 
84 void GetMatrix (int const nelem, int const ndof_e, int const ia[], int const nnode, double const xc[],
85  int const nnz, int const id[], int const ik[], double sk[], double f[]);
86 
87 
88 
101 void ApplyDirichletBC(int const nx, int const ny, int const neigh[],
102  double const u[], int const id[], int const ik[] , double sk[], double f[]);
103 
104 
105 
117 int fetch(int const row, int const col, int const id[], int const ik[]);
118 
119 
131 void Defect(double w[], double const f[], double const u[],
132  int nnode, int const id[], int const ik[], double const sk[]);
133 
134 
145 void CrsMult(double w[], double const u[], int nnode, int const id[], int const ik[], double const sk[]);
146 
147 
148 
158 void GetDiag(int nnode, int const id[], int const ik[], double const sk[], double d[]);
159 
160 
161 
162 #endif
Get_Matrix_Pattern
void Get_Matrix_Pattern(int const nelem, int const ndof_e, int const *const ia, int &nnz, int *&id, int *&ik, double *&sk)
Definition: getmatrix.cpp:14
Defect
void Defect(double w[], double const f[], double const u[], int nnode, int const id[], int const ik[], double const sk[])
Definition: getmatrix.cpp:191
AddElem
void AddElem(int const ial[3], double const ske[3][3], double const fe[3], int const id[], int const ik[], double sk[], double f[])
Definition: getmatrix.cpp:97
GetDiag
void GetDiag(int nnode, int const id[], int const ik[], double const sk[], double d[])
Definition: getmatrix.cpp:223
GetMatrix
void GetMatrix(int const nelem, int const ndof_e, int const ia[], int const nnode, double const xc[], int const nnz, int const id[], int const ik[], double sk[], double f[])
Definition: getmatrix.cpp:243
CrsMult
void CrsMult(double w[], double const u[], int nnode, int const id[], int const ik[], double const sk[])
Definition: getmatrix.cpp:206
ApplyDirichletBC
void ApplyDirichletBC(int const nx, int const ny, int const neigh[], double const u[], int const id[], int const ik[], double sk[], double f[])
Definition: getmatrix.cpp:275
DebugMatrix
void DebugMatrix(int const nnode, int const id[], int const ik[], double const sk[])
Definition: getmatrix.cpp:132
CalcElem
void CalcElem(int const ial[3], double const xc[], double ske[3][3], double fe[3])
Definition: getmatrix.cpp:68
fetch
int fetch(int const row, int const col, int const id[], int const ik[])
Definition: getmatrix.cpp:170
DebugVector
void DebugVector(int const nnode, double const v[])
Definition: getmatrix.cpp:154