petsc-3.11.4 2019-09-28
PetscNew
Allocates memory of a particular type, zeros the memory! Aligned to PETSC_MEMALIGN
Synopsis
#include <petscsys.h>
PetscErrorCode PetscNew(type **result)
Not Collective
Output Parameter
result -memory allocated, sized to match pointer type
See Also
PetscFree(), PetscMalloc(), PetscNewLog(), PetscCalloc1(), PetscMalloc1()
Level
beginner
Location
include/petscsys.h
Examples
src/ksp/ksp/examples/tutorials/ex15.c.html
src/ksp/ksp/examples/tutorials/ex42.c.html
src/snes/examples/tutorials/ex15.c.html
src/snes/examples/tutorials/ex28.c.html
src/snes/examples/tutorials/ex30.c.html
src/snes/examples/tutorials/ex48.c.html
src/snes/examples/tutorials/ex58.c.html
src/ts/examples/tutorials/ex8.c.html
src/ts/examples/tutorials/ex9.c.html
src/ts/examples/tutorials/ex10.c.html
src/ts/examples/tutorials/ex11.c.html
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages