petsc-3.7.1 2016-05-15
Report Typos and Errors

PCFieldSplitGetSubKSP

Gets the KSP contexts for all splits

Synopsis

#include "petscpc.h" 
PetscErrorCode  PCFieldSplitGetSubKSP(PC pc,PetscInt *n,KSP *subksp[])
Collective on KSP Many br

Input Parameter

pc -the preconditioner context Many br

Output Parameters

n - the number of splits Many br
pc - the array of KSP contexts Many br

Note

After PCFieldSplitGetSubKSP() the array of KSPs IS to be freed by the user Many br(not the KSP just the array that contains them). Many br

You must call KSPSetUp() before calling PCFieldSplitGetSubKSP(). Many br

Fortran Usage: You must pass in a KSP array that is large enough to contain all the local KSPs. Many brYou can call PCFieldSplitGetSubKSP(pc,n,NULL_OBJECT,ierr) to determine how large the Many brKSP array must be. Many br

Many br

See Also

PCFIELDSPLIT

Level:advanced
Location:
src/ksp/pc/impls/fieldsplit/fieldsplit.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex43.c.html
src/snes/examples/tutorials/ex70.c.html