Skip to content
Snippets Groups Projects
Commit 327eece1 authored by graeser's avatar graeser
Browse files

Merge branch 'bugfix/resolve-ambiguous-size-call' into 'master'

Use explicitly `Dune::Hybrid::size`

See merge request !4
parents acdb69a9 263c8d05
Branches
No related tags found
1 merge request!4Use explicitly `Dune::Hybrid::size`
Pipeline #
......@@ -18,7 +18,7 @@ template <class Range, class F,
std::enable_if_t<Dune::IsTupleOrDerived<std::decay_t<Range>>::value, int> = 0>
void sparseRangeFor(Range&& range, F&& f) {
using namespace Dune::Hybrid;
forEach(integralRange(size(range)), [&](auto&& i) {
forEach(integralRange(Dune::Hybrid::size(range)), [&](auto&& i) {
f(range[i], i);
});
}
......
......@@ -663,8 +663,8 @@ public:
multiTypeBlockMatrix_check[_1][_0] = {{16}, {15}};
multiTypeBlockMatrix_check[_1][_1] = {{14, 13}, {12, 11}};
using namespace Dune::Hybrid;
forEach(integralRange(size(multiTypeBlockMatrix_a)), [&](auto&& i) {
forEach(integralRange(size(multiTypeBlockMatrix_a[i])), [&](auto && j) {
forEach(integralRange(Dune::Hybrid::size(multiTypeBlockMatrix_a)), [&](auto&& i) {
forEach(integralRange(Dune::Hybrid::size(multiTypeBlockMatrix_a[i])), [&](auto && j) {
passed = passed and isCloseDune(multiTypeBlockMatrix_a[i][j],
multiTypeBlockMatrix_check[i][j]);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment