Skip to content
Snippets Groups Projects
Commit 8110010b authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Merge branch 'feature/remove_forloop' into 'master'

Use Hybrid::forEach instead of wrapper ForLoop

Use `Hybrid::forEach` instead of wrapper `ForLoop`.

See merge request !37
parents 1019d7c0 53943a96
No related branches found
No related tags found
1 merge request!37Use Hybrid::forEach instead of wrapper ForLoop
Pipeline #
......@@ -12,9 +12,10 @@
#include <vector>
#include <dune/common/array.hh>
#include <dune/common/forloop.hh>
#include <dune/common/fmatrix.hh>
#include <dune/common/fvector.hh>
#include <dune/common/hybridutilities.hh>
#include <dune/common/std/utility.hh>
#include <dune/common/typetraits.hh>
#include <dune/common/visibility.hh>
#include <dune/common/unused.hh>
......@@ -545,7 +546,7 @@ namespace Dune
}
// set up geometries
Dune::ForLoop< CreateGeometries, 0, dim >::apply( *this, geometries_ );
Hybrid::forEach( Std::make_index_sequence< dim+1 >{}, [ & ]( auto i ){ CreateGeometries< i >::apply( *this, geometries_ ); } );
}
template< int... codim >
......
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