https://github.com/sedfoam/sedfoam/blob/master/solver/setDeltaT.H file

Reset the timestep to maintain a constant maximum courant Number. Reduction of time-step is immediate, but increase is damped to avoid unstable oscillations.

Original source file setDeltaT.H