DMPlexRestoreGeomBodyMassProperties#

Release the arrays returned by DMPlexGetGeomBodyMassProperties()

Synopsis#

#include "petscdmplex.h"   
PetscErrorCode DMPlexRestoreGeomBodyMassProperties(DM dm, PetscGeom body, PetscScalar *volume, PetscScalar *surfArea, PetscScalar **centerOfGravity, PetscInt *COGsize, PetscScalar **inertiaMatrixCOG, PetscInt *IMCOGsize) PeNS

Not Collective

Input Parameters#

  • dm - The DMPLEX with an attached CAD geometry

  • body - The PetscGeom body previously queried

  • volume - The volume value (unused, retained for API symmetry)

  • surfArea - The surface area value (unused, retained for API symmetry)

  • centerOfGravity - Center-of-gravity array to free

  • COGsize - The size of centerOfGravity (unused, retained for API symmetry)

  • inertiaMatrixCOG - Inertia-matrix-at-COG array to free

  • IMCOGsize - The size of inertiaMatrixCOG (unused, retained for API symmetry)

See Also#

DMPlexGetGeomBodyMassProperties(), DMPlexGetGeomModelBodies()

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