]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test for PETSc >= 3.2
authorToby D. Young <tyoung@ippt.pan.pl>
Tue, 21 Aug 2012 09:38:37 +0000 (09:38 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Tue, 21 Aug 2012 09:38:37 +0000 (09:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@26046 0785d39b-7218-0410-832d-ea1e28bc413d

tests/petsc/vector_wrap_01.cc

index 3fa9c1f31c8f9247a09f5f52ba4f6f5eef830f61..245a69d9d8223cb8f76253a41916f304969e43fb 100644 (file)
@@ -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();

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.