fixing unit test

This commit is contained in:
Paul
2023-07-27 14:53:11 +02:00
parent 383dbf27a9
commit bf1b2dbef9

View File

@@ -795,6 +795,11 @@ File {} line {}.)", wname, location.keyword, location.filename, location.lineno)
this->invalidNamePattern(groupNamePattern, handlerContext);
const auto& pressure_item = record.getItem<ParserKeywords::GRUPNET::TERMINAL_PRESSURE>();
const int vfp_table = record.getItem<ParserKeywords::GRUPNET::VFP_TABLE>().get<int>(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.
// For standard network the summation of ALQ values are weighted with efficiency factors. For extended networks
// this calculation using efficiency factors is the default set by WEFAC item 3 (YES), the value NO is not supported.
// Therefore in opm-simulators (opm/simulators/wells/WellGroupHelpers.cpp) no changes are needed.
const bool add_gas_lift_gas = DeckItem::to_bool(record.getItem<ParserKeywords::GRUPNET::ADD_GAS_LIFT_GAS>().get<std::string>(0));
for (const auto& group_name : group_names) {
const auto& group = this->snapshots.back().groups.get(group_name);
@@ -836,8 +841,10 @@ 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) {
node.add_gas_lift_gas(add_gas_lift_gas);
network.update_node(node);
}
this->snapshots.back().network.update( std::move(network));
}