diff --git a/src/amdis/linearalgebra/petsc/VectorBackend.hpp b/src/amdis/linearalgebra/petsc/VectorBackend.hpp index a8d67718030d2e6d7097f4435a3f4e13d90caf46..75bb38a0a48cb44819fa7ce31f0f655e3c17e055 100644 --- a/src/amdis/linearalgebra/petsc/VectorBackend.hpp +++ b/src/amdis/linearalgebra/petsc/VectorBackend.hpp @@ -3,6 +3,7 @@ #include <petscvec.h> #include <dune/common/ftraits.hh> +#include <dune/common/rangeutilities.hh> #include <dune/common/shared_ptr.hh> #include <dune/functions/functionspacebases/flatmultiindex.hh> @@ -241,14 +242,14 @@ namespace AMDiS } template <class Func> - void forEach(Func&& f) + void forEach(Func&& f) { forEach(mappedRangeView(Dune::range(localSize()), [](auto i) { return Dune::Functions::FlatMultiIndex<decltype(i)>{i}; }), FWD(f)); } template <class Func> - void forEach(Func&& f) const + void forEach(Func&& f) const { forEach(mappedRangeView(Dune::range(localSize()), [](auto i) { return Dune::Functions::FlatMultiIndex<decltype(i)>{i}; }), FWD(f));