From 705027048c00389b237ec25c0759e6538c117b5f Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Mon, 16 Mar 2015 05:24:16 +0000
Subject: [PATCH] Simplify creation of the output vtk field

[[Imported from SVN: r10081]]
---
 src/harmonicmaps.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc
index 8c0d0500..101bc482 100644
--- a/src/harmonicmaps.cc
+++ b/src/harmonicmaps.cc
@@ -243,9 +243,7 @@ int main (int argc, char *argv[]) try
     }
 
     VTKWriter<GridType::LeafGridView> vtkWriter(grid->leafGridView());
-    Dune::shared_ptr<VTKBasisGridFunction<FufemFEBasis,EmbeddedVectorType> > vtkVectorField
-        = Dune::shared_ptr<VTKBasisGridFunction<FufemFEBasis,EmbeddedVectorType> >
-               (new VTKBasisGridFunction<FufemFEBasis,EmbeddedVectorType>(fufemFeBasis, xEmbedded, "orientation"));
+    auto vtkVectorField = std::make_shared<VTKBasisGridFunction<FufemFEBasis,EmbeddedVectorType> >(fufemFeBasis, xEmbedded, "orientation");
     vtkWriter.addVertexData(vtkVectorField);
 
     vtkWriter.write(resultPath + "_" + energy + "_result");
-- 
GitLab