From 59dc36d33db4a44a4637c3316a63cfc8f914069c Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Fri, 1 Oct 2010 14:47:18 +0000
Subject: [PATCH] fix previous commit

---
 Solver/linearSystemPETSc.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Solver/linearSystemPETSc.h b/Solver/linearSystemPETSc.h
index f5a5434dd0..18dea17f39 100644
--- a/Solver/linearSystemPETSc.h
+++ b/Solver/linearSystemPETSc.h
@@ -44,12 +44,13 @@
 
 template <class scalar>
 class linearSystemPETSc : public linearSystem<scalar> {
+  protected:
   int _blockSize; // for block Matrix
   bool _isAllocated, _kspAllocated;
   Mat _a;
   Vec _b, _x;
   KSP _ksp;
-  void _try(int ierr) const { CHKERRABORT(PETSC_COMM_WORLD, ierr); }
+  static void _try(int ierr) { CHKERRABORT(PETSC_COMM_WORLD, ierr); }
   void _kspCreate() {
     _try(KSPCreate(PETSC_COMM_WORLD, &_ksp));
     PC pc;
-- 
GitLab