Skip to content
Snippets Groups Projects
Commit 9c41e6a1 authored by Max Kahnt's avatar Max Kahnt
Browse files

Fix includes, use hybrid loop.

parent 531c2ae1
Branches
No related tags found
No related merge requests found
......@@ -5,8 +5,10 @@
\brief Various tools for working with istl vectors of arbitrary nesting depth
*/
#include <iostream>
#include <dune/common/fvector.hh>
#include <dune/common/hybridutilities.hh>
#include <dune/matrix-vector/algorithm.hh>
#include <iostream>
/** \brief Various tools for working with istl vectors of arbitrary nesting depth
......@@ -33,8 +35,7 @@ void truncate(Vector& v, const BitVector& tr) {
template <class Vector>
struct Helper {
static void writeBinary(std::ostream& s, const Vector& v) {
for (auto&& vi : v)
Generic::writeBinary(s, vi);
Hybrid::forEach(v, [&s](auto&& vi) { Generic::writeBinary(s, vi); });
}
template <class BitVector>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment