PetscHeapDestroy — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscHeapDestroy

Destroys a `PetscHeap` created with `PetscHeapCreate()`.

## Synopsis

    PetscErrorCode PetscHeapDestroy(PetscHeap *heap)

Not Collective

## Input Parameter

- heap - the `PetscHeap` to destroy; set to `NULL` on return

## See Also

`PetscHeap`, `PetscHeapCreate()`

## Level

developer

## Location

src/mat/utils/pheap.c

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