From 5d9483412d287cc0f53c7a0e2cde7b8956ad5ac2 Mon Sep 17 00:00:00 2001 From: young Date: Tue, 21 Aug 2012 09:38:37 +0000 Subject: [PATCH] Fix test for PETSc >= 3.2 git-svn-id: https://svn.dealii.org/trunk@26046 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/petsc/vector_wrap_01.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/petsc/vector_wrap_01.cc b/tests/petsc/vector_wrap_01.cc index 3fa9c1f31c..245a69d9d8 100644 --- a/tests/petsc/vector_wrap_01.cc +++ b/tests/petsc/vector_wrap_01.cc @@ -61,7 +61,13 @@ int main (int argc, char **argv) PETScWrappers::Vector w (100); test (v,w); } - ierr = VecDestroy(vpetsc); + +#if DEAL_II_PETSC_VERSION_LT(3,2,0) + ierr = VecDestroy (vpetsc); +#else + ierr = VecDestroy (&vpetsc); +#endif + AssertThrow (ierr == 0, ExcPETScError(ierr)); PetscFinalize(); -- 2.39.5