PCASMCreateSubdomains#
Creates the index sets for the overlapping Schwarz preconditioner, PCASM, for any problem on a general grid.
Synopsis#
#include "petscpc.h"
PetscErrorCode PCASMCreateSubdomains(Mat A, PetscInt n, IS *outis[])
Collective
Input Parameters#
A - The global matrix operator
n - the number of local blocks
Output Parameter#
outis - the array of index sets defining the subdomains
Note#
This generates nonoverlapping subdomains; the PCASM will generate the overlap
from these if you use PCASMSetLocalSubdomains()
Fortran Note#
outis cannot be PETSC_NULL_IS_POINTER. Destroy the returned array with PCASMDestroySubdomains(),
passing PETSC_NULL_IS_POINTER for is_local because no local index sets are created.
See Also#
KSP: Linear System Solvers, PCASM, PCASMSetLocalSubdomains(), PCASMDestroySubdomains()
Level#
advanced
Location#
Examples#
src/ksp/ksp/tutorials/ex19.c
src/ksp/pc/tests/ex10f.F90
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages