Use ScheduleState to manage network properties

This commit is contained in:
Joakim Hove committed 2021-01-13 00:58:03 +01:00
1 parent c5ae6b7b9a
commit 5b129a3304
1 file changed
+1 -1
@@ -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;
}