Skip to content
Snippets Groups Projects
Commit dc791b13 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

removed some warnings

parent d17b7a5d
No related branches found
No related tags found
1 merge request!5Feature/interpolation
Pipeline #1490 passed
......@@ -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;
}
......
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