Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 2.21 KB

README.md

File metadata and controls

38 lines (25 loc) · 2.21 KB

YATM

Yet another data-driven atmosphere model. Uses OASIS coupler to deliver atmospheric forcing fields to other models.

Build

mkdir build
cd build
cmake ../

Run tests

cd tests/minimal rm accessom2_restart_datetime.nml ; cp ../test_data/i2o.nc ./ ; cp ../test_data/o2i.nc ./ ; cp ../test_data/a2i.nc ./ time mpirun --mca orte_base_help_aggregate 0 --mca opal_abort_print_stack 1 -np 1 ../../build/bin/atm : -np 1 ../../build/bin/ice_stub : -np 1 ../../build/bin/ocean_stub

How does YATM handle dates?

The model tracks two datetime variables throughout a run:

  1. The forcing datetime. This is the current date and time of the forcing used to drive the model.
  2. The experiment datetime. This is the current date and time according to the model. It is simply a counter that continuously increments according to the timestep (and the calendar type).

Typically these two datetimes will have the same month, day, hour, minute, and second but may differ in the year. For example a Repeat Year Forcing experiment may start with experiment and forcing datetime of 1990-01-01T00:00:00 but as the run progresses to the second year the experiment datetime will be 1991 but the forcing datetime will go back to 1990.

Here is a description of all the namelist variables used to control datetime variables:

  • forcing_start_datetime, forcing_end_datetime: the start and end of the forcing period. The model will be forced by a continuous repetition of the forcing period.
  • restart_period: interval of time between successive model restarts. This is provided as a tuple: years, months, seconds. This breaks the entire experiment into a collection of segments.

Other key variables in datetime management are:

  • exp_start_datetime: the experiment start datetime. this is defined to be the same as the forcing_period_start_datetime and cannot be set by the user.
  • exp_cur_datetime, forcing_cur_datetime: the current experiment and forcing datetime. These are maintained by the model including across restarts and cannot be set by the user.
  • dt: the timestep, this is not set by the user but is read from the forcing files.
  • calendar: 'noleap' or 'gregorian' calendar, once again not set by the user but read from forcing files.