CHKMEMQ
Checks the memory for corruption, calls error handler if any is detected Not Collective
Synopsis
CHKMEMQ;
Notes
Must run with the option -malloc_debug to enable this option
Once the error handler is called the calling function is then returned from with the given error code.
By defaults prints location where memory that is corrupted was allocated.
Use CHKMEMA for functions that return void
See Also
PetscTraceBackErrorHandler(), PetscPushErrorHandler(), PetscError(), SETERRQ(), CHKMEMQ, SETERRQ1(), SETERRQ2(), SETERRQ3(),
PetscMallocValidate()
Level:beginner
Location:src/sys/error/../../../include/petscerror.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/ksp/ksp/examples/tutorials/ex33.c.html
src/snes/examples/tutorials/ex31.c.html