diff --git a/README.md b/README.md index 01b30fadf8539357539d3939178f825c6c21e031..8719f740bdd7dfe8b76de64ab278feaa7f686cab 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ evaluation in arbitrary local coordinates. ```c++ Grid grid = ...; -VtkWriter<typename Grid::LeafGridView> vtkWriter(grid.leafGridView()); +VtkWriter<typename Grid::LeafGridView> vtkWriter(grid.leafGridView(), Vtk::ASCII); auto fct = makeAnalyticGridViewFunction([](auto const& x) { return std::sin(x[0]); @@ -24,7 +24,7 @@ auto fct = makeAnalyticGridViewFunction([](auto const& x) { vtkWriter.addPointData(fct, "u_points"); vtkWriter.addCellData(fct, "u_cells"); -vtkWriter.write("filename.vtu", Vtk::ASCII); +vtkWriter.write("filename.vtu"); ``` See also the `src/` directory for more examples.