PCASMCreateSubdomains2D

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

Synopsis

#include "petscpc.h" 
int PCASMCreateSubdomains2D(int m,int n,int M,int N,int dof,int overlap,int *Nsub,IS **is)
Not Collective

Input Parameters

m, n - the number of mesh points in the x and y directions
M, N - the 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 subdomains created
is - the array of index sets defining the subdomains

Note

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

Keywords

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

See Also

PCASMSetTotalSubdomains(), PCASMSetLocalSubdomains(), PCASMGetSubSLES(),
PCASMSetOverlap()

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

Examples

src/sles/examples/tutorials/ex8.c.html