DMPlexMatGetClosureIndicesRefined#
Compute the fine-row and coarse-column global indices associated with the refined closure of a coarse point
Synopsis#
#include "petscdmplex.h"
PetscErrorCode DMPlexMatGetClosureIndicesRefined(DM dmf, PetscSection fsection, PetscSection globalFSection, DM dmc, PetscSection csection, PetscSection globalCSection, PetscInt point, PetscInt cindices[], PetscInt findices[])
Not Collective
Input Parameters#
dmf - The fine
DMPLEXfsection - The fine local
PetscSection, orNULLto useDMGetLocalSection(dmf, ...)globalFSection - The fine global
PetscSection, orNULLto useDMGetGlobalSection(dmf, ...)dmc - The coarse
DMPLEXcsection - The coarse local
PetscSection, orNULLto useDMGetLocalSection(dmc, ...)globalCSection - The coarse global
PetscSection, orNULLto useDMGetGlobalSection(dmc, ...)point - The coarse-mesh point
Output Parameters#
cindices - Global column indices for the coarse closure (caller-provided buffer of the correct size)
findices - Global row indices for the fine closure across all subcells produced by uniformly refining
point
Note#
This companion to DMPlexMatSetClosureRefined() returns the index sets without inserting values,
allowing callers to build sparsity patterns or perform their own MatSetValues() calls.
See Also#
DMPlex: Unstructured Grids, DM, DMPLEX, DMPlexMatSetClosureRefined(), DMPlexGetClosureIndices(), DMPlexTransformCellTransform()
Level#
developer
Location#
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages