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 DMPLEX with an attached CAD geometry

  • cpSurfGradHashTable - 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#

DMPlexGetGeomGradData(), 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