Skip to content
Snippets Groups Projects
Commit 8808feb6 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'feature/gridformat-writer-fix-for-bool' into 'master'

[gridwriter] Fix return type in forwarding function

See merge request !3935
parents 3b980256 dc2bb76f
No related branches found
No related tags found
1 merge request!3935[gridwriter] Fix return type in forwarding function
Pipeline #54029 passed
......@@ -363,7 +363,7 @@ class OutputModule : private GridWriter<typename GridVariables::GridGeometry::Gr
if (values.size() != gridVariables_.gridGeometry().vertexMapper().size())
DUNE_THROW(Dune::InvalidStateException, "Given container does not match the number of points in the grid");
this->setPointField(name, [&] (const auto& vertex) {
this->setPointField(name, [&] (const auto& vertex) -> std::ranges::range_value_t<C> {
return values[gridVariables_.gridGeometry().vertexMapper().index(vertex)];
}, prec);
}
......@@ -391,7 +391,7 @@ class OutputModule : private GridWriter<typename GridVariables::GridGeometry::Gr
if (values.size() != gridVariables_.gridGeometry().elementMapper().size())
DUNE_THROW(Dune::InvalidStateException, "Given container does not match the number of cells in the grid");
this->setCellField(name, [&] (const auto& element) {
this->setCellField(name, [&] (const auto& element) -> std::ranges::range_value_t<C> {
return values[gridVariables_.gridGeometry().elementMapper().index(element)];
}, prec);
}
......
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