petsc-3.7.1 2016-05-15
CHKMEMQ
Checks the memory for corruption, calls error handler if any is detected
Synopsis
#include <petscsys.h>
CHKMEMQ;
Not Collective Many br
Many br
Notes
We highly recommend using valgrind http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind for finding memory problems. This is useful Many bron systems that do not have valgrind, but much much less useful. Many br
Must run with the option -malloc_debug to enable this option Many br
Once the error handler is called the calling function is then returned from with the given error code. Many br
By defaults prints location where memory that is corrupted was allocated. Many br
Use CHKMEMA for functions that return void Many br
See Also
PetscTraceBackErrorHandler(), PetscPushErrorHandler(), PetscError(), SETERRQ(), CHKMEMQ, SETERRQ1(), SETERRQ2(), SETERRQ3(),
PetscMallocValidate() Many br
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/dm/examples/tutorials/ex11f90.F.html