From e305586a9f18fc08e59f3a157cb2d1c0b836e137 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Fri, 8 Jul 2016 09:01:13 +0200
Subject: [PATCH] Replace comment on missing features with NotImplemented

---
 dune/solvers/iterationsteps/projectedblockgsstep.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dune/solvers/iterationsteps/projectedblockgsstep.cc b/dune/solvers/iterationsteps/projectedblockgsstep.cc
index 25c4f71d..97a6ff21 100644
--- a/dune/solvers/iterationsteps/projectedblockgsstep.cc
+++ b/dune/solvers/iterationsteps/projectedblockgsstep.cc
@@ -12,10 +12,12 @@ void ProjectedBlockGSStep<MatrixType, VectorType>::iterate()
     const MatrixType& mat = *this->mat_;
 
     for (size_t i=0; i<this->x_->size(); i++) {
-
-        /** \todo Handle more general boundary conditions */
-        if ((*this->ignoreNodes_)[i][0])
+        auto ignoreCount = (*this->ignoreNodes_)[i].count();
+        if (ignoreCount == BlockSize)
             continue;
+        if (ignoreCount > 0)
+          DUNE_THROW(Dune::NotImplemented,
+                     "Individual blocks must be either ignored completely, or not at all");
 
         bool zeroDiagonal = false;
         for (size_t j=0; j<BlockSize; j++) {
-- 
GitLab