setInitialDeltaT: only if the time-step would be reduced by doing so

This commit is contained in:
Henry
2011-04-28 21:13:40 +01:00
parent 5222405567
commit 6500f9e997

View File

@ -26,7 +26,7 @@ Global
Description
Set the initial timestep corresponding to the timestep adjustment
algorithm in setDeltaT
algorithm in setDeltaT but only if it would reduce the timestep.
\*---------------------------------------------------------------------------*/
@ -39,7 +39,7 @@ if (adjustTimeStep)
min
(
maxCo*runTime.deltaTValue()/CoNum,
maxDeltaT
runTime.deltaTValue()
)
);
}