Skip to content
Snippets Groups Projects
Unverified Commit 0e0375d1 authored by Simip's avatar Simip Committed by GitHub
Browse files

Update README.md

parent 08da9513
No related branches found
No related tags found
Loading
......@@ -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.
......
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