PCGASMCreateSubdomains2D

Creates the index sets for the overlapping Schwarz preconditioner for a two-dimensional problem on a regular grid.

Synopsis

#include "petscpc.h" 
PetscErrorCode  PCGASMCreateSubdomains2D(PC pc, PetscInt M,PetscInt N,PetscInt Mdomains,PetscInt Ndomains,PetscInt dof,PetscInt overlap, PetscInt *nsub,IS **is,IS **is_local)
Collective

Input Parameters

M, N - the global number of mesh points in the x and y directions
Mdomains, Ndomains - the global number of subdomains in the x and y directions
dof - degrees of freedom per node
overlap - overlap in mesh lines

Output Parameters

Nsub - the number of local subdomains created
is - array of index sets defining overlapping (if overlap > 0) subdomains
is_local - array of index sets defining non-overlapping subdomains

Note

Presently PCAMSCreateSubdomains2d() is valid only for sequential preconditioners. More general related routines are PCGASMSetTotalSubdomains() and PCGASMSetLocalSubdomains().

Keywords

PC, GASM, additive Schwarz, create, subdomains, 2D, regular grid

See Also

PCGASMSetTotalSubdomains(), PCGASMSetLocalSubdomains(), PCGASMGetSubKSP(),
PCGASMSetOverlap()

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/ex8g.c.html