Fix superfluous dereferencing that broke compilation.

This commit is contained in:
Markus Blatt
2017-03-24 08:22:32 +01:00
parent 30e8753288
commit 863bef4722

View File

@@ -1054,8 +1054,7 @@ namespace Opm {
elemIt != elemEndIt;
++elemIt)
{
const auto& elem = *elemIt;
elemCtx.updatePrimaryStencil(*elem);
elemCtx.updatePrimaryStencil(*elemIt);
elemCtx.updatePrimaryIntensiveQuantities(/*timeIdx=*/0);
const unsigned cellIdx = elemCtx.globalSpaceIndex(/*spaceIdx=*/0, /*timeIdx=*/0);