petsc-3.9.3 2018-07-02
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

Input Parameter

pc -the preconditioner context

Output Parameters

n - the number of splits
subksp - the array of KSP contexts

Note

After PCFieldSplitGetSubKSP() the array of KSPs is to be freed by the user with PetscFree() (not the KSP just the array that contains them).

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

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

See Also

PCFIELDSPLIT

Level

advanced

Location

src/ksp/pc/impls/fieldsplit/fieldsplit.c

Examples

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

Implementations

PCFieldSplitGetSubKSP_FieldSplit_Schur in src/ksp/pc/impls/fieldsplit/fieldsplit.c
PCFieldSplitGetSubKSP_FieldSplit in src/ksp/pc/impls/fieldsplit/fieldsplit.c

Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages