Skip to content

Commit

Permalink
Merge branch 'mfdeakin-sandia/st_archive/mpas_rpointer' PR #1852
Browse files Browse the repository at this point in the history
This is a (hopefully temporary) fix for the short term archiver MPAS rpointer format, as documented in #1814.
  • Loading branch information
mfdeakin-sandia committed Oct 26, 2017
2 parents 4d9db5b + 8df3f83 commit ddcbbf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/acme/config_archive.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<rest_history_varname>unset</rest_history_varname>
<rpointer>
<rpointer_file>rpointer.ice$NINST_STRING</rpointer_file>
<rpointer_content>./mpascice$NINST_STRING.rst.$MPAS_DATENAME.nc</rpointer_content>
<rpointer_content>$MPAS_DATENAME</rpointer_content>
</rpointer>
</comp_archive_spec>

Expand Down Expand Up @@ -119,7 +119,7 @@
<rest_history_varname>unset</rest_history_varname>
<rpointer>
<rpointer_file>rpointer.ocn$NINST_STRING</rpointer_file>
<rpointer_content>./mpaso$NINST_STRING.rst.$MPAS_DATENAME.nc</rpointer_content>
<rpointer_content>$MPAS_DATENAME</rpointer_content>
</rpointer>
</comp_archive_spec>

Expand Down
6 changes: 4 additions & 2 deletions scripts/lib/CIME/case_st_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,13 @@ def _datetime_str_mpas(date):
'0011-12-09_00435'
"""

format_string = "{year:04d}-{month:02d}-{day:02d}_{seconds:05d}"
format_string = "{year:04d}-{month:02d}-{day:02d}_{hours:02d}:{minutes:02d}:{seconds:02d}"
return format_string.format(year = date.year,
month = date.month,
day = date.day,
seconds = _get_day_second(date))
hours = date.hour,
minutes = date.minute,
seconds = date.second)

###############################################################################
def _get_ninst_info(case, compclass):
Expand Down

0 comments on commit ddcbbf4

Please sign in to comment.