PetscSetMalloc

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

Synopsis

int PetscSetMalloc(void *(*imalloc)(unsigned int,int,char*,char*,char*),
                   int (*ifree)(void*,int,char*,char*,char*))
Not Collective

Input Parameters

malloc - the malloc routine
free - the free routine

Keywords

Petsc, set, malloc, free, memory allocation

Location: src/sys/src/memorymal.c
System Index
Table of Contents