commit WGstate after shut well from outside

This commit is contained in:
Tor Harald Sandve
2021-09-21 11:05:03 +02:00
parent 6fa9c05985
commit a650b529d1

View File

@@ -1588,6 +1588,10 @@ forceShutWellByNameIfPredictionMode(const std::string& wellname,
}
}
// the wellTesteState is updated between timesteps and we also need to update the privous WGstate
if(well_was_shut)
this->commitWGState();
// Communicate across processes if a well was shut.
well_was_shut = comm_.max(well_was_shut);