Commit 610ac5b9 authored by Andreas Nüßing's avatar Andreas Nüßing

[Unfitted] export host cell index only for volume mode

parent 0cc99943
......@@ -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