From 76b77866dd13a556ea3c3d666ca7080067fcfa49 Mon Sep 17 00:00:00 2001
From: Thomas Witkowski <thomas.witkowski@gmx.de>
Date: Thu, 21 Jun 2012 07:51:10 +0000
Subject: [PATCH] Small fix due to PETSc 3.3 version.

---
 AMDiS/src/parallel/PetscSolverGlobalMatrix.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc b/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
index 7c84020f..27e48d03 100644
--- a/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
+++ b/AMDiS/src/parallel/PetscSolverGlobalMatrix.cc
@@ -71,8 +71,10 @@ namespace AMDiS {
     // === Create PETSc matrix with the computed nnz data structure. ===
 
     MatCreateAIJ(mpiCommGlobal, nRankRows, nRankRows, 
- 		    nOverallRows, nOverallRows,
-		    0, d_nnz, 0, o_nnz, &matIntInt);
+		 nOverallRows, nOverallRows,
+		 0, d_nnz, 0, o_nnz, &matIntInt);
+
+    MatSetOption(matIntInt, MAT_NEW_NONZERO_ALLOCATION_ERR, PETSC_FALSE);
 
 #if (DEBUG != 0)
     MSG("Fill petsc matrix 1 needed %.5f seconds\n", MPI::Wtime() - wtime);
-- 
GitLab