]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a check for a PETSc 3.2 feature.
authorDavid Wells <wellsd2@rpi.edu>
Mon, 20 Feb 2017 21:22:25 +0000 (16:22 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 20 Feb 2017 21:22:25 +0000 (16:22 -0500)
tests/tests.h

index 810e51e7907c817b1adb4b272396aeb6db7da854..8c6b76d41a65ac358ea5c395eaa74f8f6a002edb 100644 (file)
@@ -286,6 +286,7 @@ namespace
 {
   void check_petsc_allocations()
   {
+#if DEAL_II_PETSC_VERSION_GTE(3, 2, 0)
     PetscStageLog stageLog;
     PetscLogGetStageLog(&stageLog);
 
@@ -314,6 +315,7 @@ namespace
 
     if (errors)
       throw dealii::ExcMessage("PETSc memory leak");
+#endif
   }
 }
 #endif

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.