From 982bdbd73e561ac22b191db597e44d9e7da6053f Mon Sep 17 00:00:00 2001
From: Thomas Witkowski <thomas.witkowski@gmx.de>
Date: Tue, 7 Jun 2011 08:59:43 +0000
Subject: [PATCH] Small bugfix for non-dev PETSc version.

---
 AMDiS/src/parallel/PetscSolverGlobalMatrix.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc b/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
index 4cd652b6..5eff17d9 100644
--- a/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
+++ b/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
@@ -186,11 +186,11 @@ namespace AMDiS {
     VecDestroy(&petscTmpVec);
     KSPDestroy(&solver);
 #else
-    MatDestroy(&petscMatrix);
-    VecDestroy(&petscRhsVec);
-    VecDestroy(&petscSolVec);
-    VecDestroy(&petscTmpVec);
-    KSPDestroy(&solver);
+    MatDestroy(petscMatrix);
+    VecDestroy(petscRhsVec);
+    VecDestroy(petscSolVec);
+    VecDestroy(petscTmpVec);
+    KSPDestroy(solver);
 #endif
   }
 
-- 
GitLab