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

PCASMCreateSubdomains2D

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

Synopsis

#include "petscpc.h" 
PetscErrorCode  PCASMCreateSubdomains2D(PetscInt m,PetscInt n,PetscInt M,PetscInt N,PetscInt dof,PetscInt overlap,PetscInt *Nsub,IS **is,IS **is_local)
Not Collective Many br

Input Parameters

m, n - the number of mesh points in the x and y directions Many br
M, N - the number of subdomains in the x and y directions Many br
dof - degrees of freedom per node Many br
overlap - overlap in mesh lines Many br

Output Parameters

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

Note

Presently PCAMSCreateSubdomains2d() is valid only for sequential Many brpreconditioners. More general related routines are Many brPCASMSetTotalSubdomains() and PCASMSetLocalSubdomains(). Many br

Many br

Keywords

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

See Also

PCASMSetTotalSubdomains(), PCASMSetLocalSubdomains(), PCASMGetSubKSP(),
PCASMSetOverlap() Many br

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

Examples

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