DMPlexMatSetClosureRefined#
Insert values into A for the closure of a coarse-cell point, using indices from the associated refined subcells
Synopsis#
#include "petscdmplex.h"
PetscErrorCode DMPlexMatSetClosureRefined(DM dmf, PetscSection fsection, PetscSection globalFSection, DM dmc, PetscSection csection, PetscSection globalCSection, Mat A, PetscInt point, const PetscScalar values[], InsertMode mode)
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, ...)A - The matrix
point - The coarse-mesh point whose refined closure is inserted
values - The values to insert (row block of size equal to the fine-closure dof count, column block of size equal to the coarse-closure dof count)
mode - The
InsertMode(ADD_VALUESorINSERT_VALUES)
Note#
This helper mirrors DMPlexMatSetClosure() but produces row indices from the fine subcells associated
with the coarse point under regular refinement. It is used when assembling operators that couple a
coarse cell to its uniform refinement.
See Also#
DMPlex: Unstructured Grids, DM, DMPLEX, DMPlexMatSetClosure(), DMPlexMatGetClosureIndicesRefined(), DMPlexTransformCellTransform(), MatSetValues()
Level#
developer
Location#
Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages