petsc-3.3-p7 2013-05-11

MatSetNearNullSpace

attaches a null space to a matrix. This null space will be used to provide near null space vectors to a multigrid preconditioner built from this matrix.

Synopsis

#include "petscmat.h" 
PetscErrorCode MatSetNearNullSpace(Mat mat,MatNullSpace nullsp)
Logically Collective on Mat and MatNullSpace

Input Parameters

mat - the matrix
nullsp - the null space object

Notes

Overwrites any previous near null space that may have been attached

See Also

MatCreate(), MatNullSpaceCreate(), MatSetNullSpace()

Level:advanced
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex49.c.html