PCNullSpaceAttach

attaches a null space to a preconditioner object. This null space will be removed from the resulting vector whenever the preconditioner is applied.

Synopsis

#include "petscsles.h" 
int PCNullSpaceAttach(PC pc,MatNullSpace nullsp)
Collective on PC

Input Parameters

pc - the preconditioner context
nullsp - the null space object

Notes

Overwrites any previous null space that may have been attached

Users manual sections

Section 4.15 Solving Singular Systems -

Keywords

PC, destroy, null space

See Also

PCCreate(), PCSetUp(), MatNullSpaceCreate(), MatNullSpace

Level:developer
Location:
src/sles/pc/interface/precon.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sles/examples/tutorials/ex10.c.html
src/snes/examples/tutorials/ex29.c.html