PetscNewLog#
Deprecated alias for PetscNew(); previously logged the allocation against a PetscObject
Synopsis#
#include <petscsys.h>
PetscErrorCode PetscNewLog(PetscObject obj, type **result)
Not Collective
Input Parameter#
obj - the
PetscObjectto which the allocation used to be charged (now ignored)
Output Parameter#
result - the newly allocated memory, sized to match
type
Note#
This macro is retained only for source compatibility. Use PetscNew() instead; PETSc no longer associates allocations with a specific PetscObject.
See Also#
PetscNew(), PetscMalloc(), PetscCalloc1(), PetscFree()
Level#
deprecated
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages