From beab268fb6b79112bef1a00ad1b14cd3e26a6e4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6=20Fahlke?= <jorrit@jorrit.de>
Date: Tue, 12 Mar 2019 20:42:14 +0100
Subject: [PATCH] GridOperator: make constraints access uniform

---
 src/gridoperator.hh | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/gridoperator.hh b/src/gridoperator.hh
index 20ababb..ceb299b 100644
--- a/src/gridoperator.hh
+++ b/src/gridoperator.hh
@@ -42,13 +42,6 @@ namespace PPS {
       : pconstraintsv(&cv)
     {}
 
-    //! get the constraints on the test grid function space
-    const CV& testConstraints() const
-    {
-      return *pconstraintsv;
-    }
-
-
     /* constraints */
     const CV* pconstraintsv;
     static CV emptyconstraintsv;
@@ -244,7 +237,7 @@ namespace PPS {
         (std::is_same<CV, Dune::PDELab::EmptyTransformation>{},
          [](auto){},
          [&](auto id) {
-           for (const auto& col : local_assembler.testConstraints())
+           for (const auto& col : *local_assembler.pconstraintsv)
            {
              assert(col.first.size() == 1);
              r[col.first[0]] = 0;
-- 
GitLab