DMCompositeSetCoupling
Sets user provided routines that compute the coupling between the seperate components (DA's and arrays) in a DMComposite to build the correct matrix nonzero structure.
Synopsis
#include "petscda.h"
PetscErrorCode PETSCDM_DLLEXPORT DMCompositeSetCoupling(DMComposite dmcomposite,PetscErrorCode (*FormCoupleLocations)(DMComposite,Mat,PetscInt*,PetscInt*,PetscInt,PetscInt,PetscInt,PetscInt))
Collective on MPI_Comm
Input Parameter
| dmcomposite | - the composite object
|
| formcouplelocations | - routine to set the nonzero locations in the matrix
|
Notes: See DMCompositeSetContext() and DMCompositeGetContext() for how to get user information into
this routine
See Also
DMCompositeDestroy(), DMCompositeAddArray(), DMCompositeAddDM(), DMCompositeScatter(),
DMCompositeGather(), DMCompositeCreateGlobalVector(), DMCompositeGetGlobalIndices(), DMCompositeGetAccess()
DMCompositeGetLocalVectors(), DMCompositeRestoreLocalVectors(), DMCompositeGetEntries(), DMCompositeSetContext(),
DMCompositeGetContext()
Level:advanced
Location:src/dm/da/utils/pack.c
Index of all DA routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/snes/examples/tutorials/ex22.c.html