Actual source code: petscvalgrind.h

petsc-3.11.2 2019-05-18
Report Typos and Errors
  1: /*
  2:   This is the include file for source code that needs to know if the code is being run under valgrind
  3: */

  7: #if defined(PETSC_HAVE_VALGRIND)
  8: #  include <valgrind/valgrind.h>
  9: #  define PETSC_RUNNING_ON_VALGRIND RUNNING_ON_VALGRIND
 10: #else
 11: #  define PETSC_RUNNING_ON_VALGRIND PETSC_FALSE
 12: #endif

 14: #endif