diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp b/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp index c49031c8e..d684bf6a5 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp @@ -488,6 +488,7 @@ public: const std::string& groupName() const; Phase getPreferredPhase() const; + const std::vector getConnections(int completion) const; const WellConnections& getConnections() const; const WellSegments& getSegments() const; @@ -530,9 +531,6 @@ public: connections. The integer ID is assigned with the COMPLUMP keyword. */ bool hasCompletion(int completion) const; - const std::vector getConnections(int completion) const; - - bool updatePrediction(bool prediction_mode); bool updateAutoShutin(bool auto_shutin); bool updateCrossFlow(bool allow_cross_flow); diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/Well/Well.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/Well/Well.cpp index 981fb92fb..28444584f 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/Well/Well.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/Well/Well.cpp @@ -1036,8 +1036,8 @@ bool Well::handleWELOPEN(const DeckRecord& record, Connection::State state_arg, bool Well::handleCOMPLUMP(const DeckRecord& record) { auto match = [=]( const Connection &c) -> bool { - if (!match_eq(c.getI(), record, "I" , -1)) return false; - if (!match_eq(c.getJ(), record, "J" , -1)) return false; + if (!match_eq(c.getI(), record, "I" , -1)) return false; + if (!match_eq(c.getJ(), record, "J" , -1)) return false; if (!match_ge(c.getK(), record, "K1", -1)) return false; if (!match_le(c.getK(), record, "K2", -1)) return false;