Skip to content

Commit 59ed733

Browse files
make sure that ocn bgc baselines are captured (#253)
* make sure that ocn bgc baselines are captured * Clean up hist_file_ext_regex Now streams that match string.string OR string.string.string will get archived, so we don't need to explicitly list h.bgc.z and h.bgc.native Also cleaned up the test_file_names section to include a restarts split across two restart files and the current expected stream files. * Update regex to handle multiple mom6.ic files --------- Co-authored-by: Michael Levy <mike.levy.work@gmail.com>
1 parent 8e80909 commit 59ed733

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

cime_config/config_archive.xml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,27 @@
1111
h.bgc.*[._optional instance number].nc -->
1212
<hist_file_extension>h\.bgc\..*?.?[_\d+]+.nc$</hist_file_extension>
1313
<!-- match filenames of the form
14-
ic.(date string)[._optional instance number].nc[.optional tile number] -->
15-
<hist_file_extension>ic.[-\d+]+(\._\d*)?\.nc(\.\d*)?$</hist_file_extension>
16-
<hist_file_ext_regex>\w+\.\w+(\._\d*)?</hist_file_ext_regex>
14+
ic.(date string[_optional id for splitting date over many files)[._optional instance number].nc[.optional tile number] -->
15+
<hist_file_extension>ic.[-\d(_\d)?+]+(\._\d*)?\.nc(\.\d*)?$</hist_file_extension>
16+
<hist_file_ext_regex>\w+\.\w+(\.\w+)?(\._\d*)?</hist_file_ext_regex>
1717
<rpointer>
1818
<rpointer_file>rpointer.ocn$NINST_STRING.$DATENAME</rpointer_file>
1919
<rpointer_content>$CASE.mom6$NINST_STRING.r.$DATENAME.nc</rpointer_content>
2020
</rpointer>
21+
<test_file_names>
22+
<tfile disposition="copy">rpointer.ocn.1976-01-01-00000</tfile>
23+
<tfile disposition="copy">casename.mom6.r.1976-01-01-00000.nc</tfile>
24+
<tfile disposition="copy">casename.mom6.r.1976-01-01-00000_1.nc</tfile>
25+
<tfile disposition="move">casename.mom6.h.bgc.native.1976-01-01.nc</tfile>
26+
<tfile disposition="move">casename.mom6.h.bgc.z.1976-01-01.nc</tfile>
27+
<tfile disposition="move">casename.mom6.h.native.1976-01-01-00000.nc</tfile>
28+
<tfile disposition="move">casename.mom6.h.ocean_geometry.nc</tfile>
29+
<tfile disposition="move">casename.mom6.h.rho2.1976-01-01-00000.nc</tfile>
30+
<tfile disposition="move">casename.mom6.h.sfc.1976-01-01-00000.nc</tfile>
31+
<tfile disposition="move">casename.mom6.h.static.nc</tfile>
32+
<tfile disposition="move">casename.mom6.h.z.1976-01-01-00000.nc</tfile>
33+
<tfile disposition="move">casename.mom6.ic.1976-01-01-00000.nc</tfile>
34+
<tfile disposition="move">casename.mom6.ic.1976-01-01-00000_1.nc</tfile>
35+
</test_file_names>
2136
</comp_archive_spec>
2237
</components>

0 commit comments

Comments
 (0)