petsc-3.5.4 2015-05-23
MatSetBlockSizes
Sets the matrix block row and column sizes.
Synopsis
#include "petscmat.h"
PetscErrorCode MatSetBlockSizes(Mat mat,PetscInt rbs,PetscInt cbs)
Logically Collective on Mat
Input Parameters
| mat | - the matrix
|
| rbs | - row block size
|
cbs -column block size
Notes
This must be called before MatSetUp() or MatXXXSetPreallocation() (or will default to 1) and the block size cannot be changed later
See Also
MatCreateSeqBAIJ(), MatCreateBAIJ(), MatGetBlockSize()
Level:intermediate
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages