mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-01 21:39:09 -06:00
Iterate over Interior_Partition instead of All_Partition and if-clause
This commit is contained in:
parent
bb7934b1a2
commit
2b0a9351d5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user