Commit dc791b13 authored by Praetorius, Simon's avatar Praetorius, Simon

removed some warnings

parent d17b7a5d
Pipeline #1490 passed with stage
in 3 minutes and 57 seconds
......@@ -175,7 +175,7 @@ namespace Dune
{
std::size_t size = entityStacks_[i].size();
return std::accumulate(entityStacks_.begin(), entityStacks_.end(), true,
[i,size](bool allowed, auto const& entityStack) {
[size](bool allowed, auto const& entityStack) {
return allowed && (entityStack.size() <= size || entityStack.finished(size));
});
}
......
......@@ -38,9 +38,12 @@ template <class Grid>
std::size_t traverse(Grid const& grid)
{
std::size_t num = 0;
double vol = 0.0;
for (auto const& entities : elements(grid.leafGridView())) {
++num;
vol += entities.geometry().volume();
}
std::cout << "volume = " << vol << "\n";
return num;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment