Test the memory for corruption. This can be used to check for memory overwrites.
PetscErrorCode PetscMallocValidate(int line,const char function,const char file)
|line ||- line number where call originated.
|function ||- name of function calling
|file ||- file where function is
The number of errors detected.
Error messages are written to stdout.
This is only run if PetscMallocDebug() has been called which is set by -malloc_test (if debugging is turned on) or -malloc_debug (any time)
You should generally use CHKMEMQ as a short cut for calling this
The line, function, file are given by the C preprocessor as
The Fortran calling sequence is simply PetscMallocValidate(ierr)
No output is generated if there are no problems detected.
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages