Avoid negative time step size after restart (trouble for DRSDT init)

This commit is contained in:
Vegard Kippe 2024-08-28 15:02:26 +02:00
parent 0485bfb47f
commit 0b6dd93903

View File

@ -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);