Merge pull request #3018 from joakim-hove/sched-network

Use ScheduleState to manage network properties
This commit is contained in:
Joakim Hove 2021-01-13 08:04:35 +01:00 committed by GitHub
commit 8607539c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1358,7 +1358,7 @@ namespace Opm {
{
// Get the network and return if inactive.
const int reportStepIdx = ebosSimulator_.episodeIndex();
const auto& network = schedule().network(reportStepIdx);
const auto& network = schedule()[reportStepIdx].network();
if (!network.active()) {
return;
}