DMPlexGetGeomCntrlPntAndWeightData — PETSc 3.23.0 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexGetGeomCntrlPntAndWeightData

Gets Control Point and Associated Weight Data for the Geometry attached to the DMPlex

## Synopsis

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

Not collective

## Input Parameter

- dm - The DMPlex object with an attached PetscContainer storing a CAD Geometry object

## Output Parameters

- cpHashTable - Hash Table containing the relationship between FACE ID and Control Point IDs.

- cpCoordDataLength - Length of cpCoordData Array.

- cpCoordData - Array holding the Geometry Control Point Coordinate Data.

- maxNumEquiv - Maximum Number of Equivalent Control Points (Control Points with the same coordinates but different IDs).

- cpEquiv - Matrix with a size(Number of Control Points, Number or Control Points) which stores a value of 1.0 in locations where Control Points with different IDS (row or column) have the same coordinates

- wHashTable - Hash Table containing the relationship between FACE ID and Control Point Weight.

- wDataLength - Length of wData Array.

- wData - Array holding the Weight for an associated Geometry Control Point.

## Note

Must Call DMPLexGeomDataAndGrads() before calling this function.

## See Also

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