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

VTKWriter extracts a LocalFunction, no need to do that ourselves

parent 1282b3d0
No related branches found
No related tags found
No related merge requests found
......@@ -252,10 +252,9 @@ int main (int argc, char *argv[]) try
xEmbedded[i] = x[i].globalCoordinates();
auto xFunction = Dune::Functions::makeDiscreteGlobalBasisFunction<TargetSpace::CoordinateType>(feBasis,TypeTree::hybridTreePath(),xEmbedded);
auto localXFunction = localFunction(xFunction);
VTKWriter<GridType::LeafGridView> vtkWriter(grid->leafGridView());
vtkWriter.addVertexData(localXFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::scalar, xEmbedded[0].size()));
vtkWriter.addVertexData(xFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::scalar, xEmbedded[0].size()));
vtkWriter.write(resultPath + "_" + energy + "_result");
// Write the corresponding coefficient vector: verbatim in binary, to be completely lossless
......
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