Commit dfbabeed authored by Andreas Nüßing's avatar Andreas Nüßing

Merge branch 'feature/fix-unfitted-vtk' into 'master'

[Unfitted] export host cell index only for volume mode

See merge request duneuro/duneuro!54
parents 0cc99943 610ac5b9
......@@ -225,12 +225,13 @@ namespace duneuro
fundamentalGridView_, conductivities_));
vtkWriter.addVertexData(std::make_shared<Dune::UDG::DomainIndexUnfittedVTKGridFunction<
typename Traits::GridView>>(fundamentalGridView_));
vtkWriter.addVertexData(std::make_shared<Dune::UDG::HostCellIndexUnfittedVTKGridFunction<
typename Traits::GridView>>(fundamentalGridView_));
auto modeString = config.get<std::string>("mode", "volume");
if ((modeString == "faces") || (modeString == "boundary")) {
vtkWriter.addVertexData(std::make_shared<Dune::UDG::DomainIndexUnfittedVTKGridFunction<
typename Traits::GridView>>(fundamentalGridView_, false));
} else {
vtkWriter.addVertexData(std::make_shared<Dune::UDG::HostCellIndexUnfittedVTKGridFunction<
typename Traits::GridView>>(fundamentalGridView_));
}
vtkWriter.write(config, dataTree);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment