CGpop mini-Application (2-sided MPI 1D data structure version) 0.1
Routines for multiplying a compressed sparse row matrix and a vector (the linear data structure in the solver).
|subroutine, public||ConvertStencil (Mat, A0, AN, AE, ANE)|
|This subroutine forms the 9-point stencil into a matrix for the conjugate gradient solver. Note that only the diagonal A0 is time dependent, the non-zero pattern is static. This subroutine could therefore be simplified. |
|subroutine, public||matvec (n, Mat, Y, X)|
|This routine calculates the matrix vector product,. |