DMPlexRestoreGeomGradData#
Release the arrays returned by DMPlexGetGeomGradData()
Synopsis#
#include "petscdmplex.h"
PetscErrorCode DMPlexRestoreGeomGradData(DM dm, PetscHMapI *cpSurfGradHashTable, Mat *cpSurfGrad, PetscInt *cpArraySize, PetscScalar **gradSACP, PetscScalar **gradVolCP, PetscInt *wArraySize, PetscScalar **gradSAW, PetscScalar **gradVolW)
Not Collective
Input Parameters#
dm - The
DMPLEXwith an attached CAD geometrycpSurfGradHashTable - Surface-gradient hash table (unused, retained for API symmetry)
cpSurfGrad - Surface-gradient matrix (unused, retained for API symmetry)
cpArraySize - Length of the control-point gradient arrays (unused, retained for API symmetry)
gradSACP - Surface-area gradient with respect to control points, to release
gradVolCP - Volume gradient with respect to control points, to release
wArraySize - Length of the control-point-weight gradient arrays (unused, retained for API symmetry)
gradSAW - Surface-area gradient with respect to weights, to release
gradVolW - Volume gradient with respect to weights, to release
See Also#
Level#
intermediate
Location#
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