mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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;
|
std::size_t count = 0;
|
||||||
const auto& gridView = grid.leafGridView();
|
const auto& gridView = grid.leafGridView();
|
||||||
for(auto cell = gridView.template begin<0>(),
|
for(auto cell = gridView.template begin<0, Dune::Interior_Partition>(),
|
||||||
endCell = gridView.template end<0>();
|
endCell = gridView.template end<0, Dune::Interior_Partition>();
|
||||||
cell != endCell; ++cell)
|
cell != endCell; ++cell)
|
||||||
{
|
{
|
||||||
if ( cell.partitionType() == Dune::InteriorEntity )
|
|
||||||
{
|
|
||||||
++count;
|
++count;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user