Commit 8f13f03d authored by Oliver Sander's avatar Oliver Sander Committed by Steffen Müthing

Use the new constructor of VTKSequenceWriter

Cherry-picked version backported to work with Dune 2.4 compiler
requirements.

(cherry picked from commit e8e94d93)
Signed-off-by: Steffen Müthing's avatarSteffen Müthing <muething@dune-project.org>
parent a13a8953
......@@ -4,6 +4,7 @@
#include "config.h" // autoconf defines, needed by the dune headers
// dune headers
#include <dune/common/shared_ptr.hh>
#include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/vtk/vtksequencewriter.hh>
......@@ -72,9 +73,10 @@ void doWrite( const GridView &gridView, Dune::VTK::DataMode dm )
std::stringstream name;
name << "vtktest-" << dim << "D-" << VTKDataMode(dm);
Dune :: VTKSequenceWriter< GridView >
vtk( gridView, name.str(), ".", "", dm );
Dune::shared_ptr<Dune::VTKWriter<GridView> > vtkWriter =
Dune::make_shared<Dune::VTKWriter<GridView> >(gridView, dm);
Dune :: VTKSequenceWriter< GridView > vtk( vtkWriter, name.str(), ".", "" );
vtk.addVertexData(vertexdata,"vertexData");
vtk.addCellData(celldata,"cellData");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment