Use ScheduleState to manage network properties

This commit is contained in:
Joakim Hove 2021-01-13 00:58:03 +01:00
parent c5ae6b7b9a
commit 5b129a3304

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;
}