Replacing loop by assignment

This commit is contained in:
Vegard Kippe
2023-11-10 09:01:09 +01:00
parent 36b341e4f6
commit 4ce9c41a37

View File

@@ -108,9 +108,7 @@ BlackoilWellModelGeneric(Schedule& schedule,
const auto& node_pressures = eclState.getRestartNetworkPressures();
if (node_pressures.has_value()) {
for (const auto& it: node_pressures.value()) {
this->node_pressures_[it.first] = it.second;
}
this->node_pressures_ = node_pressures.value();
}
}