From 7f9fe977725ad52652fc02dd9c111cdf0a83cff0 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Tue, 3 May 2016 16:04:11 +0200
Subject: [PATCH] VTKWriter extracts a LocalFunction, no need to do that
 ourselves

---
 src/harmonicmaps.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc
index 2ecfbe7d..52142ad4 100644
--- a/src/harmonicmaps.cc
+++ b/src/harmonicmaps.cc
@@ -252,10 +252,9 @@ int main (int argc, char *argv[]) try
         xEmbedded[i] = x[i].globalCoordinates();
 
     auto xFunction = Dune::Functions::makeDiscreteGlobalBasisFunction<TargetSpace::CoordinateType>(feBasis,TypeTree::hybridTreePath(),xEmbedded);
-    auto localXFunction = localFunction(xFunction);
 
     VTKWriter<GridType::LeafGridView> vtkWriter(grid->leafGridView());
-    vtkWriter.addVertexData(localXFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::scalar, xEmbedded[0].size()));
+    vtkWriter.addVertexData(xFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::scalar, xEmbedded[0].size()));
     vtkWriter.write(resultPath + "_" + energy + "_result");
 
     // Write the corresponding coefficient vector: verbatim in binary, to be completely lossless
-- 
GitLab