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 PetscObject to 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#

include/petscsys.h


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