diff --git a/AMDiS/src/DOFVector.cc b/AMDiS/src/DOFVector.cc index c4f6a9f7ba401dcd2b384801d958bd34b4c5664c..9bfb7d9734e56dd6308f1e3b44eeb22ae3888f68 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 71aabaef0bcb66c95438c69333e8495be2035181..a9bc7811c2d8fc9ff083ee22c2c34d0c9b503eb9 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. */