mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-14 16:23:25 -06:00
Avoid negative time step size after restart (trouble for DRSDT init)
This commit is contained in:
parent
0485bfb47f
commit
0b6dd93903
@ -574,6 +574,8 @@ public:
|
||||
thpres.setFromRestart(thpresValues);
|
||||
}
|
||||
restartTimeStepSize_ = restartValues.getExtra("OPMEXTRA")[0];
|
||||
if (restartTimeStepSize_ <= 0)
|
||||
restartTimeStepSize_ = std::numeric_limits<double>::max();
|
||||
|
||||
// initialize the well model from restart values
|
||||
simulator_.problem().wellModel().initFromRestartFile(restartValues);
|
||||
|
Loading…
Reference in New Issue
Block a user