MPI_mgparc
|
Functions | |
int | AdrCRS (const int row, const int col, const int id[], const int ik[], const int nnode) |
void | ApplyDirichletBC1 (const int nx, const int ny, const int neigh[], const double u[], double sk[], const int id[], const int ik[], double f[]) |
int AdrCRS | ( | const int | row, |
const int | col, | ||
const int | id[], | ||
const int | ik[], | ||
const int | nnode | ||
) |
Determines for a symmetrix CSR matrix the index of element (row
, col
).
[in] | row | row index |
[in] | col | colum index |
[in] | id | index vector containing the last entry in a CSR row |
[in] | ik | column index vector of CSR matrix |
row
, col
). -1 indicates that this entry is not available. void ApplyDirichletBC1 | ( | const int | nx, |
const int | ny, | ||
const int | neigh[], | ||
const double | u[], | ||
double | sk[], | ||
const int | id[], | ||
const int | ik[], | ||
double | f[] | ||
) |
Applies Dirichlet boundary conditions to symmetric CSR matrix (sk
,id
, ik
) and right hand side f
of a system of equations resulting from a FEM/FDM discretization. This is a special version function ApplyDirichletBC for parallel matrix generation taking into account distributed matrix and distributed rhs.
[in] | nx | number of discretization intervals in x-direction |
[in] | ny | number of discretization intervals in y-direction |
[in] | neigh | vector of 4 elements containing the ranks of neighbouring processes, -1 indicates a boundary in this direction |
[in] | u | local vector with appropriately initialized b.c. |
[in,out] | sk | vector non-zero entries of CSR matrix |
[in] | id | index vector containing the last entry in a CSR row |
[in] | ik | column index vector of CSR matrix |
[in,out] | f | right hand side |