From 2c826e0a78f250e1431137a2200989b166f4b671 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 20 Feb 2017 16:22:25 -0500 Subject: [PATCH] Add a check for a PETSc 3.2 feature. --- tests/tests.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tests.h b/tests/tests.h index 810e51e790..8c6b76d41a 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -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 -- 2.39.5