petsc-3.11.4 2019-09-28
Report Typos and Errors

PetscNewLog

Allocates memory of a type matching pointer, zeros the memory! Aligned to PETSC_MEMALIGN. Associates the memory allocated with the given object using PetscLogObjectMemory().

Synopsis

#include <petscsys.h>
PetscErrorCode PetscNewLog(PetscObject obj,type **result)
Not Collective

Input Parameter

obj -object memory is logged to

Output Parameter

result -memory allocated, sized to match pointer type

See Also

PetscFree(), PetscMalloc(), PetscNew(), PetscLogObjectMemory(), PetscCalloc1(), PetscMalloc1()

Level

developer

Location

include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages