Skip to content
Snippets Groups Projects
Commit 55179901 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use the SubsamplingVTKWriter

parent 403d9a2b
No related branches found
No related tags found
No related merge requests found
...@@ -253,7 +253,7 @@ int main (int argc, char *argv[]) try ...@@ -253,7 +253,7 @@ int main (int argc, char *argv[]) try
auto xFunction = Dune::Functions::makeDiscreteGlobalBasisFunction<TargetSpace::CoordinateType>(feBasis,TypeTree::hybridTreePath(),xEmbedded); auto xFunction = Dune::Functions::makeDiscreteGlobalBasisFunction<TargetSpace::CoordinateType>(feBasis,TypeTree::hybridTreePath(),xEmbedded);
VTKWriter<GridType::LeafGridView> vtkWriter(grid->leafGridView()); SubsamplingVTKWriter<GridType::LeafGridView> vtkWriter(grid->leafGridView(),order-1);
vtkWriter.addVertexData(xFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::vector, xEmbedded[0].size())); vtkWriter.addVertexData(xFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::vector, xEmbedded[0].size()));
vtkWriter.write(resultPath + "_" + energy + "_result"); vtkWriter.write(resultPath + "_" + energy + "_result");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment