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

Write result as VTK _vector_ data (not scalar data)

Otherwise, the ParaView 'glyph' filter won't recognize the direction fields.
parent 4278dc68
No related branches found
No related tags found
No related merge requests found
......@@ -254,7 +254,7 @@ int main (int argc, char *argv[]) try
auto xFunction = Dune::Functions::makeDiscreteGlobalBasisFunction<TargetSpace::CoordinateType>(feBasis,TypeTree::hybridTreePath(),xEmbedded);
VTKWriter<GridType::LeafGridView> vtkWriter(grid->leafGridView());
vtkWriter.addVertexData(xFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::scalar, xEmbedded[0].size()));
vtkWriter.addVertexData(xFunction, VTK::FieldInfo("orientation", VTK::FieldInfo::Type::vector, 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