petsc-3.3-p7 2013-05-11


Returns a list of IS objects defining a decomposition of a problem into subproblems corresponding to different fields: each IS contains the global indices of the dofs of the corresponding field. The optional list of DMs define the DM for each subproblem. Generalizes DMCreateFieldIS().


#include "petscdm.h"     
PetscErrorCode DMCreateFieldDecomposition(DM dm, PetscInt *len, char ***namelist, IS **islist, DM **dmlist)
Not collective

Input Parameter

dm -the DM object

Output Parameters

len - The number of subproblems in the field decomposition (or PETSC_NULL if not requested)
namelist - The name for each field (or PETSC_NULL if not requested)
islist - The global indices for each field (or PETSC_NULL if not requested)
dmlist - The DMs for each field subproblem (or PETSC_NULL, if not requested; if PETSC_NULL is returned, no DMs are defined)


The user is responsible for freeing all requested arrays. In particular, every entry of names should be freed with PetscFree(), every entry of is should be destroyed with ISDestroy(), every entry of dm should be destroyed with DMDestroy(), and all of the arrays should be freed with PetscFree().

See Also

DMDestroy(), DMView(), DMCreateInterpolation(), DMCreateColoring(), DMCreateMatrix(), DMCreateFieldIS()

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