petsc-3.3-p7 2013-05-11

PetscFree

Frees memory

Synopsis

PetscErrorCode PetscFree(void *memory)
Not Collective

Input Parameter

memory -memory to free (the pointer is ALWAYS set to 0 upon sucess)

Notes: Memory must have been obtained with PetscNew() or PetscMalloc()

See Also

PetscNew(), PetscMalloc(), PetscFreeVoid()

Level:beginner
Location:
include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/sys/random/examples/tutorials/ex1.c.html
src/sys/threadcomm/examples/tutorials/ex1.c.html
src/sys/threadcomm/examples/tutorials/ex3.c.html
src/sys/threadcomm/examples/tutorials/ex5.c.html
src/vec/vec/examples/tutorials/ex6.c.html
src/vec/vec/examples/tutorials/ex8.c.html
src/vec/vec/examples/tutorials/ex9.c.html
src/vec/is/examples/tutorials/ex1.c.html
src/mat/examples/tutorials/ex2.c.html
src/mat/examples/tutorials/ex5.c.html
src/mat/examples/tutorials/ex10.c.html