Skip to content

Commit 60f67c1

Browse files
authored
Merge pull request #267 from jedwards4b/stochastic_restart
recommended changes for stochastic restart support
2 parents 82962ad + 4b56354 commit 60f67c1

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

cime_config/config_archive.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<components version="2.0">
22
<comp_archive_spec compname="mom" compclass="ocn">
33
<rest_file_extension>r</rest_file_extension>
4+
<rest_file_extension>r_stoch</rest_file_extension>
45
<!-- match filenames of the form
56
h[.optional stream name][._optional instance number].(date string).nc[.optional tile number] -->
67
<hist_file_extension>h(\.\w+)?(\._\d*)?\.[-\d+]+\.nc(\.\d*)?(\.gz)?$</hist_file_extension>
@@ -23,6 +24,7 @@
2324
<tfile disposition="copy">rpointer.ocn.1976-01-01-00000</tfile>
2425
<tfile disposition="copy">casename.mom6.r.1976-01-01-00000.nc</tfile>
2526
<tfile disposition="copy">casename.mom6.r.1976-01-01-00000_1.nc</tfile>
27+
<tfile disposition="copy">casename.mom6.r_stoch.1976-01-01-00000.nc</tfile>
2628
<tfile disposition="move">casename.mom6.h.bgc.native.1976-01-01.nc</tfile>
2729
<tfile disposition="move">casename.mom6.h.bgc.z.1976-01-01.nc</tfile>
2830
<tfile disposition="move">casename.mom6.h.native.1976-01-01-00000.nc</tfile>

param_templates/input_nml.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ mpp_io_nml:
5858
values: .true.
5959

6060
nam_stochy:
61+
stochini:
62+
values:
63+
$CONTINUE_RUN == True: .true.
64+
else: .false.
6165
new_lscale:
6266
values: .true.
6367
OCNSKEB:

param_templates/json/input_nml.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@
7070
}
7171
},
7272
"nam_stochy": {
73+
"stochini": {
74+
"values": {
75+
"$CONTINUE_RUN == True": ".true.",
76+
"else": ".false."
77+
}
78+
},
7379
"new_lscale": {
7480
"values": ".true."
7581
},

0 commit comments

Comments
 (0)