SNESPatchSetDiscretisationInfo#
Provide the per-subspace discretisation information required by a SNESPATCH to build patch problems
Synopsis#
Logically Collective
Input Parameters#
snes - the
SNESPATCHsolvernsubspaces - the number of discretisation subspaces (e.g. fields)
dms - array of length
nsubspacesofDMs, one per subspaceisets - array of length
nsubspacesofISs, mapping subspace DoFs to DoFs in the full local mixed spacedofsPerCell - array of length
nsubspacesgiving the number of DoFs per cell for each subspacecellDofMap - array of length
nsubspaces; entryiis a cell-to-DoF map for subspaceinumGhostBcs - number of ghost (off-process) boundary-condition dofs
ghostBcDofs - array of length
numGhostBcsof the ghost boundary-condition dof indicesnumGlobalBcs - number of global boundary-condition dofs
globalBcDofs - array of length
numGlobalBcsof the global boundary-condition dof indices
Note#
A DM must already be attached to snes (via SNESSetDM()) before calling this routine. Internally, the information is forwarded to the underlying PCPATCH via PCPatchSetDiscretisationInfo().
The isets must together index each degree of freedom of the full local space exactly once; the size of that
space is taken to be the sum of their local sizes.
See Also#
SNES: Nonlinear Solvers, SNESPATCH, PCPATCH, PCPatchSetDiscretisationInfo(), SNESPatchSetComputeOperator(), SNESPatchSetComputeFunction()
Level#
advanced
Location#
Examples#
Index of all SNES routines
Table of Contents for all manual pages
Index of all manual pages