Iterate over Interior_Partition instead of All_Partition and if-clause

This commit is contained in:
Markus Blatt 2017-03-24 12:21:58 +01:00
parent bb7934b1a2
commit 2b0a9351d5

View File

@ -170,14 +170,11 @@ namespace detail {
}
std::size_t count = 0;
const auto& gridView = grid.leafGridView();
for(auto cell = gridView.template begin<0>(),
endCell = gridView.template end<0>();
for(auto cell = gridView.template begin<0, Dune::Interior_Partition>(),
endCell = gridView.template end<0, Dune::Interior_Partition>();
cell != endCell; ++cell)
{
if ( cell.partitionType() == Dune::InteriorEntity )
{
++count;
}
}
return count;
}