Skip to content

Commit 8da18c5

Browse files
ekluzekbjandre
authored andcommitted
mosart1_0_27
Upgrade config_component to version 3, allow output file format to change, fix a couple bugs Bugs fixed: 2477, 2494
1 parent b799a5c commit 8da18c5

7 files changed

Lines changed: 87 additions & 55 deletions

File tree

cime_config/buildnml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen):
7979
run_refcase = case.get_value("RUN_REFCASE")
8080
run_refdate = case.get_value("RUN_REFDATE")
8181
run_tod = case.get_value("RUN_REFTOD")
82-
if inst_string:
83-
filename = "%s.mosart%s.r.%s-%s.nc" %(run_refcase, inst_string, run_refdate, run_tod)
84-
else:
82+
rundir = case.get_value("RUNDIR")
83+
filename = "%s.mosart%s.r.%s-%s.nc" %(run_refcase, inst_string, run_refdate, run_tod)
84+
if not os.path.exists(os.path.join(rundir, filename ) ):
8585
filename = "%s.mosart.r.%s-%s.nc" %(run_refcase, run_refdate, run_tod)
86+
8687
if run_type == "hybrid":
8788
nmlgen.add_default("finidat_rtm", value=filename, ignore_abs_path=True)
8889
else:

cime_config/config_component.xml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
<?xml version="1.0"?>
22

3-
<definitions_variables>
3+
<entry_id version="3.0">
4+
5+
<!-- modifier_mode allowed values are
6+
'*' 0 or more modifiers (default)
7+
'1' exactly 1 modifier
8+
'?' 0 or 1 modifiers
9+
'+' 1 or more modifiers
10+
This file may have lnd desc entries.
11+
-->
12+
<description modifier_mode="*">
13+
<desc rof="MOSART[%FLOOD]">MOSART: MOdel for Scale Adaptive River Transport</desc>
14+
<desc option="FLOOD">MOSART model with flood:</desc>
15+
</description>
416

517
<entry id="COMP_ROF">
618
<type>char</type>
@@ -35,7 +47,7 @@
3547
<desc>mode for mosart flood feature, NULL means mosart flood is turned off</desc>
3648
</entry>
3749

38-
<entry id="MOSART_SIMYR">
50+
<entry id="MOSART_SIMYR">
3951
<type>char</type>
4052
<valid_values></valid_values>
4153
<default_value>-simyr 2000</default_value>
@@ -49,16 +61,10 @@
4961
<file>env_run.xml</file>
5062
<desc>MOSART build-namelist options</desc>
5163
</entry>
52-
53-
<description>
54-
<desc compset="_MOSART">MOSART:</desc>
55-
<desc compset="_MOSART%FLOOD">MOSART model with flood:</desc>
56-
</description>
57-
5864
<help>
5965
=========================================
6066
MOSART naming conventions
6167
=========================================
6268
</help>
6369

64-
</definitions_variables>
70+
</entry_id>
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
&mosart_inparam
21
! do_rtm = .true.
32
! ice_runoff = .true.
43
rtmhist_ndens = 1,1,1
54
rtmhist_nhtfrq =-24,-8
65
rtmhist_mfilt = 1,1
7-
/
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
&mosart_inparam
21
do_rtm = .true.
32
ice_runoff = .false.
4-
/
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
&rtm_inparm
21
do_rtm = .false.
32
ice_runoff = .false.
4-
/

doc/ChangeLog

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
===============================================================
2+
Tag name: mosart1_0_27
3+
Originator(s): erik
4+
Date: Oct 03, 2017
5+
One-line Summary: Upgrade config_component to version 3, allow output file format
6+
to change, fix a couple bugs
7+
8+
Bugs fixed: 2477, 2494
9+
10+
Testing: aux_clm testlist with cfgcompsetv3_n01_clm4_5_16_r251 on yellowstone/cheyenne/hobart
11+
12+
M src/riverroute/RtmIO.F90 - Changes from Jim Edwards to change format of output NetCDF
13+
files, and remove public attribute from io_type
14+
15+
Remove unneeded setting of namelist group name in test namelists (bug 2494)
16+
M cime_config/testdefs/testmods_dirs/mosart/default/user_nl_mosart
17+
M cime_config/testdefs/testmods_dirs/mosart/iceOff/user_nl_mosart
18+
M cime_config/testdefs/testmods_dirs/mosart/mosartOff/user_nl_mosart
19+
20+
M cime_config/buildnml ------------- Fix bug 2477 for MOSART so that
21+
if NINST_RTM > 1, will check if REFCASE has instance name
22+
in it and then use it, but if not use it without instance name
23+
M cime_config/config_component.xml - Upgrade to version 3 format
24+
125
===============================================================
226
Tag name: mosart1_0_26
327
Originator(s): erik

0 commit comments

Comments
 (0)