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

Note#

Memory must have been obtained with PetscMalloc2()

See Also#

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

Level#

developer

Location#

include/petscsys.h

Examples#

src/ksp/ksp/tutorials/ex19.c
src/ksp/ksp/tutorials/ex68.c
src/ksp/ksp/tutorials/ex69.c
src/ksp/ksp/tutorials/ex74.c
src/ksp/ksp/tutorials/ex77.c
src/mat/tutorials/ex17.c
src/mat/tutorials/ex18.c
src/mat/tutorials/ex4.c
src/snes/tutorials/ex12.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex31.c


Edit on GitLab

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