mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 01:42:01 -05:00
eclbasevanguard: use elements range generator
This commit is contained in:
1 parent
a6509fe077
commit
82b29f113a
1 file changed
+3
-6
@@ -551,12 +551,9 @@ protected:
|
||||
int numElements = this->gridView().size(/*codim=*/0);
|
||||
cellThickness_.resize(numElements);
|
||||
|
||||
auto elemIt = this->gridView().template begin</*codim=*/0>();
|
||||
const auto& elemEndIt = this->gridView().template end</*codim=*/0>();
|
||||
for (; elemIt != elemEndIt; ++elemIt) {
|
||||
const auto& element = *elemIt;
|
||||
const unsigned int elemIdx = elemMapper.index(element);
|
||||
cellThickness_[elemIdx] = computeCellThickness(element);
|
||||
for (const auto& elem : elements(this->gridView())) {
|
||||
const unsigned int elemIdx = elemMapper.index(elem);
|
||||
cellThickness_[elemIdx] = computeCellThickness(elem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user