diff --git a/src/opm/input/eclipse/Deck/DeckItem.cpp b/src/opm/input/eclipse/Deck/DeckItem.cpp index 5180f4efe..9f4af6c1e 100644 --- a/src/opm/input/eclipse/Deck/DeckItem.cpp +++ b/src/opm/input/eclipse/Deck/DeckItem.cpp @@ -503,9 +503,6 @@ bool DeckItem::to_bool(std::string string_value) { if (string_value == "1") return true; - if (string_value == "FLO") - return true; - if (string_value == "FALSE") return false; diff --git a/src/opm/input/eclipse/Schedule/KeywordHandlers.cpp b/src/opm/input/eclipse/Schedule/KeywordHandlers.cpp index 2d62dec92..6f2b75109 100644 --- a/src/opm/input/eclipse/Schedule/KeywordHandlers.cpp +++ b/src/opm/input/eclipse/Schedule/KeywordHandlers.cpp @@ -795,10 +795,13 @@ File {} line {}.)", wname, location.keyword, location.filename, location.lineno) this->invalidNamePattern(groupNamePattern, handlerContext); const auto& pressure_item = record.getItem(); const int vfp_table = record.getItem().get(0); - // It is assumed here that item 6 (ADD_GAS_LIFT_GAS) has the two options ON and FLO. THe option ALQ is not supported. + // It is assumed here that item 6 (ADD_GAS_LIFT_GAS) has the two options NO and FLO. THe option ALQ is not supported. // For standard networks the summation of ALQ values are weighted with efficiency factors. // Note that, currently, extended networks uses always efficiency factors (this is the default set by WEFAC item 3 (YES), the value NO is not supported.) - const bool add_gas_lift_gas = DeckItem::to_bool(record.getItem().get(0)); + const std::string& add_gas_lift_gas_string = record.getItem().get(0); + bool add_gas_lift_gas = false; + if (add_gas_lift_gas_string == "FLO") + add_gas_lift_gas = true; for (const auto& group_name : group_names) { const auto& group = this->snapshots.back().groups.get(group_name); @@ -841,7 +844,7 @@ File {} line {}.)", wname, location.keyword, location.filename, location.lineno) } // To use update_node the node should be associated to a branch via add_branch() // so the update of nodes is postponed after creation of branches - for(const auto& node: nodes) + for(const auto& node: nodes) network.update_node(node); this->snapshots.back().network.update( std::move(network)); }