mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-27 18:16:26 -06:00
Properly initialize mixing controls after restart.
This commit is contained in:
parent
cc08df226e
commit
8f45cbe4c4
@ -2211,9 +2211,8 @@ protected:
|
||||
const auto& schedule = simulator.vanguard().schedule();
|
||||
const auto& eclState = simulator.vanguard().eclState();
|
||||
const auto& initconfig = eclState.getInitConfig();
|
||||
const int restart_step = initconfig.getRestartStep();
|
||||
{
|
||||
int restart_step = initconfig.getRestartStep();
|
||||
|
||||
simulator.setTime(schedule.seconds(restart_step));
|
||||
|
||||
simulator.startNextEpisode(simulator.startTime() + simulator.time(),
|
||||
@ -2247,6 +2246,9 @@ protected:
|
||||
this->micp_.resize(numElems);
|
||||
}
|
||||
|
||||
// Initialize mixing controls before trying to set any lastRx valuesx
|
||||
this->mixControls_.init(numElems, restart_step, eclState.runspec().tabdims().getNumPVTTables());
|
||||
|
||||
for (std::size_t elemIdx = 0; elemIdx < numElems; ++elemIdx) {
|
||||
auto& elemFluidState = initialFluidStates_[elemIdx];
|
||||
elemFluidState.setPvtRegionIndex(pvtRegionIndex(elemIdx));
|
||||
|
Loading…
Reference in New Issue
Block a user