PetscClearMalloc

Resets the routines used to do mallocs and frees to the defaults.

Synopsis

#include "petsc.h"   
int PetscClearMalloc(void)
Not Collective

Notes

In general one should never run a PETSc program with different malloc() and free() settings for different parts; this is because one NEVER wants to free() an address that was malloced by a different memory management system

Keywords

Petsc, set, malloc, free, memory allocation

Level:developer
Location:src/sys/src/memory/mal.c
System Index
Table of Contents