From: David Wells Date: Mon, 20 Feb 2017 21:22:25 +0000 (-0500) Subject: Add a check for a PETSc 3.2 feature. X-Git-Tag: v8.5.0-rc1~104^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c826e0a78f250e1431137a2200989b166f4b671;p=dealii.git Add a check for a PETSc 3.2 feature. --- 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