Skip to content

Commit

Permalink
added monthly streams
Browse files Browse the repository at this point in the history
  • Loading branch information
alicebarthel committed Jul 31, 2024
1 parent 9182875 commit 7a890c3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions compass/ocean/tests/baroclinic_gyre/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def __init__(self, test_case, resolution, name='forward', subdir=None,
self.add_model_as_input()

self.add_output_file(filename='output/output.0001-01-01_00.00.00.nc')
self.add_output_file(filename='output/'
'timeSeriesStatsMonthly.0001-01-01.nc')

# no setup() is needed

Expand Down
1 change: 1 addition & 0 deletions compass/ocean/tests/baroclinic_gyre/namelist.forward
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ config_cvmix_shear_mixing_scheme = 'KPP'
config_use_cvmix_kpp = .true.
config_use_GM = .true.
config_use_Redi = .true.
config_AM_timeSeriesStatsMonthly_enable = .true.
16 changes: 14 additions & 2 deletions compass/ocean/tests/baroclinic_gyre/streams.forward
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@

<stream name="timeSeriesStatsMonthlyOutput"
type="output"
filename_template="timeSeriesStatsMonthly.$Y-$M-$D.nc"
filename_interval="00-01-00_00:00:00"
filename_template="output/timeSeriesStatsMonthly.$Y-$M-$D.nc"
filename_interval="01-00-00_00:00:00"
reference_time="0001-01-01_00:00:00"
clobber_mode="truncate"
io_type="pnetcdf"
Expand Down Expand Up @@ -103,4 +103,16 @@

</stream>

<stream name="timeSeriesStatsMonthlyRestart"
type="input;output"
filename_template="restarts/mpaso.rst.am.timeSeriesStatsMonthly.$Y-$M-$D_$S.nc"
filename_interval="output_interval"
reference_time="0001-01-01_00:00:00"
clobber_mode="truncate"
packages="timeSeriesStatsMonthlyAMPKG"
input_interval="initial_only"
output_interval="stream:restart:output_interval" >

</stream>

</streams>

0 comments on commit 7a890c3

Please sign in to comment.