Manage global time-stepping


   subroutine time_loop()

This internal routine is the heart of the code. It contains the main time-loop inside of which all routines required during the time step are called. The following main processes are successively triggered.

  1. The model time is updated and the output is prepared.
  2. Air-sea interactions (flux, SST) are computed.
  3. The time step is performed on the mean-flow equations (momentum, temperature).
  4. Some quantities related to shear and stratification are updated (shear-number, buoyancy frequency, etc).
  5. Turbulence is updated depending on what turbulence closure model has been specified by the user.
  6. The results are written to the output files.

Depending on macros set for the Fortran pre-processor, extra features like the effects of sea-grass or sediments are considered in this routine (see section 10).


   Original author(s): Karsten Bolding & Hans Burchard

Karsten Bolding 2012-12-28