diff --git a/opm/core/simulator/initStateEquil_impl.hpp b/opm/core/simulator/initStateEquil_impl.hpp index 1e58e02ef..915fc4ba0 100644 --- a/opm/core/simulator/initStateEquil_impl.hpp +++ b/opm/core/simulator/initStateEquil_impl.hpp @@ -553,7 +553,7 @@ namespace Opm fi != fe; ++fi) { - for (auto i = faceVertices[*fi].begin(), e=faceVertices[*fi].end(); + for (auto i = faceVertices[*fi].begin(), e = faceVertices[*fi].end(); i != e; ++i) { const double z = UgGridHelpers::vertexCoordinates(G, *i)[nd-1];