DMShellSetCreateDomainDecomposition#

Set the routine used to create a domain decomposition for the DMSHELL

Synopsis#

#include "petscdmshell.h"  
PetscErrorCode DMShellSetCreateDomainDecomposition(DM dm, PetscErrorCode (*decomp)(DM dm, PetscInt *len, char **namelist[], IS *innerlist[], IS *outerlist[], DM *dmlist[]))

Logically Collective

Input Parameters#

  • dm - the DMSHELL

  • decomp - the routine to create the decomposition

Calling sequence of decomp#

  • dm - the DM to decompose into domains

  • len - output, the number of domains (or NULL if not requested)

  • namelist - output, the name for each domain (or NULL if not requested)

  • innerlist - output, the global indices for each domain’s inner region (or NULL if not requested)

  • outerlist - output, the global indices for each domain’s outer region (or NULL if not requested)

  • dmlist - output, the DMs for each field subproblem (or NULL, if not requested; if NULL is returned, no DMs are defined)

See Also#

DM, DMSHELL, DMCreateDomainDecomposition(), DMShellSetContext(), DMShellGetContext()

Level#

advanced

Location#

src/dm/impls/shell/dmshell.c


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