From: young Date: Tue, 21 Aug 2012 09:38:37 +0000 (+0000) Subject: Fix test for PETSc >= 3.2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d9483412d287cc0f53c7a0e2cde7b8956ad5ac2;p=dealii-svn.git Fix test for PETSc >= 3.2 git-svn-id: https://svn.dealii.org/trunk@26046 0785d39b-7218-0410-832d-ea1e28bc413d --- 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();