PetscFree2#

Frees 2 chunks of memory obtained with PetscMalloc2()

Synopsis#

#include <petscsys.h>
PetscErrorCode PetscFree2(void *memory1,void *memory2)

Not Collective

Input Parameters#

  • memory1 - memory to free

  • memory2 - 2nd memory to free

Notes#

Memory must have been obtained with PetscMalloc2()

The arguments need to be in the same order as they were in the call to PetscMalloc2()

See Also#

PetscNew(), PetscMalloc(), PetscMalloc2(), PetscFree()

Level#

developer

Location#

include/petscsys.h

Examples#

src/vec/is/sf/tutorials/ex1.c
src/vec/vec/tutorials/ex44.c
src/snes/tutorials/ex13.c
src/tao/unconstrained/tutorials/spectraladjointassimilation.c
src/tao/tutorials/ex4.c
src/snes/tutorials/ex55k.kokkos.cxx
src/tao/unconstrained/tutorials/burgers_spectral.c
src/snes/tutorials/ex7.c
src/snes/tutorials/ex31.c
src/snes/tutorials/ex12.c


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