mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Replacing loop by assignment
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user