PCNullSpaceCreate

Creates a data structure used to project vectors out of null spaces.

Synopsis

#include "pc.h" 
int PCNullSpaceCreate(MPI_Comm comm,int has_cnst,int n,Vec *vecs,PCNullSpace *SP)
Collective on MPI_Comm

Input Parameters

comm - the MPI communicator associated with the object
has_cnst - PETSC_TRUE if the null space contains the constant vector; otherwise PETSC_FALSE
n - number of vectors (excluding constant vector) in null space
vecs - the vectors that span the null space (excluding the constant vector); these vectors must be orthonormal

Output Parameter

SP -the null space context

Keywords

PC, null space, create

See Also

PCNullSpaceDestroy(), PCNullSpaceRemove()

Level:advanced
Location:src/sles/pc/interface/pcnull.c
PC Index
Table of Contents