Skip to content
Snippets Groups Projects
Commit ce567e76 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Update examples to recent changes in dune-vtk

parent 7c99f672
No related branches found
No related tags found
No related merge requests found
Pipeline #12818 failed
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <dune/vtk/vtkreader.hh> #include <dune/vtk/vtkreader.hh>
#include <dune/vtk/gridcreators/lagrangegridcreator.hh> #include <dune/vtk/gridcreators/lagrangegridcreator.hh>
#include <dune/vtk/writers/vtkunstructuredgridwriter.hh> #include <dune/vtk/writers/unstructuredgridwriter.hh>
#include <dune/vtk/datacollectors/lagrangedatacollector.hh> #include <dune/vtk/datacollectors/lagrangedatacollector.hh>
#include <dune/foamgrid/foamgrid.hh> #include <dune/foamgrid/foamgrid.hh>
...@@ -30,7 +30,7 @@ template <int order, class Grid> ...@@ -30,7 +30,7 @@ template <int order, class Grid>
void write_grid (const Grid& grid, std::string filename) void write_grid (const Grid& grid, std::string filename)
{ {
Vtk::LagrangeDataCollector dataCollector{grid.leafGridView(), order}; Vtk::LagrangeDataCollector dataCollector{grid.leafGridView(), order};
VtkUnstructuredGridWriter vtkWriter{dataCollector, Vtk::FormatTypes::ASCII}; Vtk::UnstructuredGridWriter vtkWriter{dataCollector, Vtk::FormatTypes::ASCII};
vtkWriter.write(filename); vtkWriter.write(filename);
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <dune/curvedgrid/gridfunctions/analyticdiscretefunction.hh> #include <dune/curvedgrid/gridfunctions/analyticdiscretefunction.hh>
#include <dune/grid/yaspgrid.hh> #include <dune/grid/yaspgrid.hh>
#include <dune/grid/io/file/gmshreader.hh> #include <dune/grid/io/file/gmshreader.hh>
#include <dune/vtk/writers/vtkunstructuredgridwriter.hh> #include <dune/vtk/writers/unstructuredgridwriter.hh>
#include <dune/vtk/datacollectors/lagrangedatacollector.hh> #include <dune/vtk/datacollectors/lagrangedatacollector.hh>
using namespace Dune; using namespace Dune;
...@@ -23,7 +23,7 @@ template <int order, class Grid> ...@@ -23,7 +23,7 @@ template <int order, class Grid>
void write_grid (const Grid& grid, std::string filename) void write_grid (const Grid& grid, std::string filename)
{ {
Vtk::LagrangeDataCollector dataCollector{grid.leafGridView(), order}; Vtk::LagrangeDataCollector dataCollector{grid.leafGridView(), order};
VtkUnstructuredGridWriter vtkWriter{dataCollector, Vtk::FormatTypes::ASCII}; Vtk::UnstructuredGridWriter vtkWriter{dataCollector, Vtk::FormatTypes::ASCII};
vtkWriter.write(filename); vtkWriter.write(filename);
} }
...@@ -107,4 +107,4 @@ int main(int argc, char** argv) ...@@ -107,4 +107,4 @@ int main(int argc, char** argv)
sphere(); sphere();
torus(); torus();
graph(); graph();
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment