Remove unused variable warning for endElementIt.

It was redefined and initialized in an inner scope.
This commit is contained in:
Markus Blatt 2017-03-20 19:53:27 +01:00
parent ad1fe8fac0
commit 990ea7c44c

View File

@ -895,7 +895,6 @@ namespace Opm {
Vector& B_idx = B[ idx ];
const int ebosPhaseIdx = flowPhaseToEbosPhaseIdx(idx);
const int ebosCompIdx = flowPhaseToEbosCompIdx(idx);
const auto& elemEndIt = gridView.template end</*codim=*/0>();
for (auto elemIt = gridView.template begin</*codim=*/0>();
elemIt != elemEndIt;