Skip to content

Commit

Permalink
Add more comments and information in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dabail10 committed Jun 22, 2023
1 parent befc255 commit 8e30396
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cicecore/cicedyn/general/ice_init.F90
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ subroutine input_data
histfreq_base = 'zero' ! output frequency reference date
hist_avg(:) = .true. ! if true, write time-averages (not snapshots)
history_format = 'default' ! history file format
hist_time_axis = 'end' ! History file time axis interval position
hist_time_axis = 'end' ! History file time axis averaging interval position

history_dir = './' ! write to executable dir for default
history_file = 'iceh' ! history file name prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,8 @@ subroutine ice_write_hist (ns)

ltime2 = timesecs/secday ! hist_time_axis = 'end' (default)

! Some coupled models require the time axis "stamp" to be in the middle
! or even beginning of averaging interval.
if (hist_avg(ns)) then
if (trim(hist_time_axis) == "begin" ) ltime2 = time_beg(ns)
if (trim(hist_time_axis) == "middle") ltime2 = p5*(time_beg(ns)+time_end(ns))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ subroutine ice_write_hist (ns)

ltime2 = timesecs/secday ! hist_time_axis = 'end' (default)

! Some coupled models require the time axis "stamp" to be in the middle
! or even beginning of averaging interval.
if (hist_avg(ns)) then
if (trim(hist_time_axis) == "begin" ) ltime2 = time_beg(ns)
if (trim(hist_time_axis) == "middle") ltime2 = p5*(time_beg(ns)+time_end(ns))
Expand Down
3 changes: 2 additions & 1 deletion doc/source/user_guide/ug_implementation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,8 @@ or averaged as specified by the ``hist_avg`` namelist setting and the frequency
will be relative to a reference date specified by ``histfreq_base``. Also, some
Earth Sytem Models require the history file time axis to be centered in the averaging
interval. The flag ``hist_time_axis`` will allow the user to chose ``begin``, ``middle``,
or ``end``. More information about how the frequency is computed is found in :ref:`timemanager`.
or ``end`` for the time stamp. More information about how the frequency is
computed is found in :ref:`timemanager`.

For example, in the namelist:

Expand Down

0 comments on commit 8e30396

Please sign in to comment.