Skip to content
Snippets Groups Projects
Commit a389d61b authored by maxka's avatar maxka
Browse files

Use Dune::Hybrid::size explicitly.

parent a2cda825
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -13,7 +13,7 @@ namespace MatrixVector { ...@@ -13,7 +13,7 @@ namespace MatrixVector {
template <class Range, class F, EnableTupleOrDerived<Range, int> = 0> template <class Range, class F, EnableTupleOrDerived<Range, int> = 0>
void sparseRangeFor(Range&& range, F&& f) { void sparseRangeFor(Range&& range, F&& f) {
using namespace Dune::Hybrid; using namespace Dune::Hybrid;
forEach(integralRange(size(range)), [&](auto&& i) { forEach(integralRange(Dune::Hybrid::size(range)), [&](auto&& i) {
f(range[i], i); f(range[i], i);
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment