mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-14 05:33:28 -06:00
fixed: use of restartTimeStep() before it has been read
it is read in the beginRestart() method, reorder code accordingly
This commit is contained in:
parent
aa87e215d0
commit
3327e69c7f
@ -2447,11 +2447,11 @@ private:
|
||||
timeMap.getTimeStepLength(episodeIdx));
|
||||
simulator.setEpisodeIndex(episodeIdx);
|
||||
|
||||
eclWriter_->beginRestart();
|
||||
|
||||
Scalar dt = std::min(eclWriter_->restartTimeStepSize(), simulator.episodeLength());
|
||||
simulator.setTimeStepSize(dt);
|
||||
|
||||
eclWriter_->beginRestart();
|
||||
|
||||
size_t numElems = this->model().numGridDof();
|
||||
initialFluidStates_.resize(numElems);
|
||||
if (enableSolvent)
|
||||
|
Loading…
Reference in New Issue
Block a user