DMPlexRestoreGeomCntrlPntAndWeightData — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexRestoreGeomCntrlPntAndWeightData

Release the arrays returned by `DMPlexGetGeomCntrlPntAndWeightData()`

## Synopsis

    #include "petscdmplex.h"
    PetscErrorCode DMPlexRestoreGeomCntrlPntAndWeightData(DM dm, PetscHMapI *cpHashTable, PetscInt *cpCoordDataLength, PetscScalar **cpCoordData, PetscInt *maxNumEquiv, Mat *cpEquiv, PetscHMapI *wHashTable, PetscInt *wDataLength, PetscScalar **wData)

Not Collective

## Input Parameters

- dm - The `DMPLEX` with an attached CAD geometry

- cpHashTable - Control-point hash table (unused, retained for API symmetry)

- cpCoordDataLength - Length of `cpCoordData` (unused, retained for API symmetry)

- cpCoordData - Control-point coordinate array to release

- maxNumEquiv - Maximum number of equivalent control points (unused, retained for API symmetry)

- cpEquiv - Control-point equivalency matrix (unused, retained for API symmetry)

- wHashTable - Weight hash table (unused, retained for API symmetry)

- wDataLength - Length of `wData` (unused, retained for API symmetry)

- wData - Weight array to release

## See Also

`DMPlexGetGeomCntrlPntAndWeightData()`, `DMPlexGeomDataAndGrads()`

## Level

intermediate

## Location

src/dm/impls/plex/plexegads.c

## Examples

src/dm/impls/plex/tutorials/ex19.c

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