Added errors_[0] == 0 to conditional

This commit is contained in:
Erik Hide Sæternes
2023-10-17 14:20:03 +02:00
committed by Erik Hide Saeternes
parent 37e96e211c
commit 6c556484b1

View File

@@ -192,7 +192,7 @@ namespace Opm
OpmLog::info(fmt::format("Computed step size (tol): {} days", unit::convert::to( newDt, unit::day )));
return newDt;
}
else if (errors_[1] == 0 || errors_[2] == 0.)
else if (errors_[0] == 0 || errors_[1] == 0 || errors_[2] == 0.)
{
if ( verbose_ )
OpmLog::info("The solution between time steps does not change, there is no time step constraint from the PID time step control ");