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

PCGASMGetSubKSP

Gets the local KSP contexts for all blocks on this processor.

Synopsis

#include "petscpc.h" 
PetscErrorCode  PCGASMGetSubKSP(PC pc,PetscInt *n_local,PetscInt *first_local,KSP *ksp[])
Collective on PC iff first_local is requested Many br

Input Parameter

pc -the preconditioner context Many br

Output Parameters

n_local - the number of blocks on this processor or NULL Many br
first_local - the global number of the first block on this processor or NULL, Many brall processors must request or all must pass NULL Many br
ksp - the array of KSP contexts Many br

Note

After PCGASMGetSubKSP() the array of KSPes is not to be freed Many br

Currently for some matrix implementations only 1 block per processor Many bris supported. Many br

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

Many br

Keywords

PC, GASM, additive Schwarz, get, sub, KSP, context

See Also

PCGASMSetSubdomains(), PCGASMSetOverlap(),
PCGASMCreateSubdomains2D(), Many br

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

Examples

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