From 0dc9abf993068dafd1cc3d91801b1cf4f6b91f0b Mon Sep 17 00:00:00 2001
From: Lasse Hinrichsen <lh1887@mi.fu-berlin.de>
Date: Wed, 22 May 2019 14:04:01 +0200
Subject: [PATCH] Remove redundant (and unused) local view

The outer trial view is never used.
The trial basis on the outer element will be considered when the now "outer" element is
the "inner" element in the loop, so no information is lost.
---
 dune/fufem/assemblers/dunefunctionsoperatorassembler.hh | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dune/fufem/assemblers/dunefunctionsoperatorassembler.hh b/dune/fufem/assemblers/dunefunctionsoperatorassembler.hh
index 504fd9fa..8e23f5d6 100644
--- a/dune/fufem/assemblers/dunefunctionsoperatorassembler.hh
+++ b/dune/fufem/assemblers/dunefunctionsoperatorassembler.hh
@@ -71,8 +71,6 @@ public:
 
     auto insideAnsatzLocalView      = ansatzBasis_.localView();
 
-    auto outsideTrialLocalView      = trialBasis_.localView();
-
     auto outsideAnsatzLocalView     = ansatzBasis_.localView();
 
     for (const auto& element : elements(trialBasis_.gridView()))
@@ -99,8 +97,6 @@ public:
           const auto& outsideElement = is.outside();
 
           // Bind the outer parts to the outer element
-          outsideTrialLocalView.bind(outsideElement);
-
           outsideAnsatzLocalView.bind(outsideElement);
 
           // We assume that all basis functions of the inner element couple with all basis functions from the outer one
-- 
GitLab