#include "petscmat.h" int MatSetStencil(Mat mat,int dim,int *dims,int *starts,int dof)Not Collective
| mat | - the matrix | |
| dim | - dimension of the grid 1,2, or 3 | |
| dims | - number of grid points in x, y, and z direction, including ghost points on your processor | |
| starts | - starting point of ghost nodes on your processor in x, y, and z direction | |
| dof | - number of degrees of freedom per node |
Inspired by the structured grid interface to the HYPRE package (www.llnl.gov/CASC/hyper)
Level:beginner
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages