petsc-3.5.4 2015-05-23
Report Typos and Errors


Creates n local index sets for the overlapping Schwarz preconditioner for a any problem based on its matrix.


#include "petscpc.h" 
PetscErrorCode  PCGASMCreateLocalSubdomains(Mat A, PetscInt overlap, PetscInt n, IS *iis[], IS *ois[])

Input Parameters

A - The global matrix operator
overlap - amount of overlap in outer subdomains
n - the number of local subdomains

Output Parameters

iis - the array of index sets defining the local inner subdomains (on which the correction is applied)
ois - the array of index sets defining the local outer subdomains (on which the residual is computed)

Note: this generates n nonoverlapping local inner subdomains on PETSC_COMM_SELF; PCGASM will generate the overlap from these if you use them in PCGASMSetSubdomains() and set a nonzero overlap with PCGASMSetOverlap()

In the Fortran version you must provide the array outis[] already allocated of length n.


PC, GASM, additive Schwarz, create, subdomains, unstructured grid

See Also

PCGASMSetSubdomains(), PCGASMDestroySubdomains()

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