MPI_mgparc
Functions
applybc.cpp File Reference

Functions

void ApplyDirichletBC (const int nx, const int ny, const int neigh[], const double u[], double sk[], const int id[], const int *, double f[])
 

Function Documentation

void ApplyDirichletBC ( const int  nx,
const int  ny,
const int  neigh[],
const double  u[],
double  sk[],
const int  id[],
const int *  ,
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

Parameters
[in]nxnumber of discretization intervals in x-direction
[in]nynumber of discretization intervals in y-direction
[in]neighvector of 4 elements containing the ranks of neighbouring processes, -1 indicates a boundary in this direction
[in]ulocal vector with appropriately initialized b.c.
[in,out]skvector non-zero entries of CSR matrix
[in]idindex vector containing the last entry in a CSR row
[in]ikcolumn index vector of CSR matrix
[in,out]fright hand side