PetscSetMalloc

Sets the routines used to do mallocs and frees. This routine MUST be called before PetscInitialize() and may be called only once.

Synopsis

#include "petsc.h"   
int PetscSetMalloc(int (*imalloc)(size_t,int,char*,char*,char*,void**),
                   int (*ifree)(void*,int,char*,char*,char*))
Not Collective

Input Parameters

malloc - the malloc routine
free - the free routine

Level:developer
Location:
src/sys/src/memory/mal.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages