mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Avoid negative time step size after restart (trouble for DRSDT init)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user