From 0c20d39e1be2e6e779d3f27547aef0ada5f80754 Mon Sep 17 00:00:00 2001
From: Thomas Witkowski <thomas.witkowski@gmx.de>
Date: Wed, 1 Oct 2008 11:33:50 +0000
Subject: [PATCH] * Ehm, hab ich vergessen was ich gaendert habe

---
 AMDiS/src/DOFVector.cc   | 2 +-
 AMDiS/src/SystemVector.h | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/AMDiS/src/DOFVector.cc b/AMDiS/src/DOFVector.cc
index c4f6a9f7..9bfb7d97 100644
--- a/AMDiS/src/DOFVector.cc
+++ b/AMDiS/src/DOFVector.cc
@@ -8,7 +8,7 @@ namespace AMDiS {
   template<>
   void DOFVector<double>::coarseRestrict(RCNeighbourList& list, int n)
   {
-    switch(coarsenOperation) {
+    switch (coarsenOperation) {
     case NO_OPERATION:
       return;
       break;
diff --git a/AMDiS/src/SystemVector.h b/AMDiS/src/SystemVector.h
index 71aabaef..a9bc7811 100644
--- a/AMDiS/src/SystemVector.h
+++ b/AMDiS/src/SystemVector.h
@@ -245,6 +245,13 @@ namespace AMDiS {
       }
     }
 
+    inline void setCoarsenOperation(CoarsenOperation op) { 
+      for (int i = 0; i < static_cast<int>(vectors.getSize()); i++) {
+	vectors[i]->setCoarsenOperation(op); 
+      }
+    }
+
+
     /** \brief
      * Sets all entries in all vectors to value.
      */
-- 
GitLab