Skip to content

Commit e39892e

Browse files
committed
Merge branch 'development' into develop/optional-mpas-features
2 parents e97fd3c + 2b81de7 commit e39892e

File tree

5 files changed

+36
-17
lines changed

5 files changed

+36
-17
lines changed

cime_config/cam_config.py

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,10 @@ def __init__(self, case, case_log):
503503
"To specify the Kessler and Held-Suarez suites as ",
504504
"run time options, use '--physics-suites kessler;held_suarez_1994'."]
505505

506+
#--------------------------
507+
# Set physics_suites string
508+
#--------------------------
509+
506510
self.create_config("physics_suites", phys_desc,
507511
user_config_opts.physics_suites)
508512

@@ -585,7 +589,7 @@ def parse_config_opts(cls, config_opts, test_mode=False):
585589
[('analytic_ic', False), ('dyn', 'se'), ('dyn_kind', 'REAL64'), ('phys_kind', 'REAL64'), ('physics_suites', 'kessler')]
586590
587591
5. Check that parse_config_opts works as expected when given both a string and logical argument:
588-
>>> config_opts = ConfigCAM.parse_config_opts("--physics-suites kessler --dyn se --analytic_ic")
592+
>>> config_opts = ConfigCAM.parse_config_opts("--physics-suites kessler --dyn se --analytic-ic")
589593
>>> vargs = vars(config_opts)
590594
>>> [(x, vargs[x]) for x in sorted(vargs)]
591595
[('analytic_ic', True), ('dyn', 'se'), ('dyn_kind', 'REAL64'), ('phys_kind', 'REAL64'), ('physics_suites', 'kessler')]
@@ -609,26 +613,38 @@ def parse_config_opts(cls, config_opts, test_mode=False):
609613
epilog="Allowed values of "+cco_str)
610614

611615
#Add argument options:
612-
parser.add_argument("--physics-suites", "-physics-suites", type=str,
613-
required=True, metavar='<CCPP_SDFs>',
616+
parser.add_argument("--physics-suites",
617+
type=str,
618+
required=True,
619+
metavar='<CCPP_SDFs>',
614620
help="""Semicolon-separated list of Physics Suite
615621
Definition Files (SDFs)""")
616622

617-
parser.add_argument("--dyn", "-dyn", metavar='<dycore>',
618-
type=str, required=False, default="",
623+
parser.add_argument("--dyn",
624+
type=str,
625+
required=False,
626+
metavar='<dycore>',
627+
default="",
619628
help="""Name of dycore""")
620629

621-
parser.add_argument("--analytic_ic", "-analytic_ic",
622-
action='store_true', required=False,
630+
parser.add_argument("--analytic-ic",
631+
action='store_true',
632+
required=False,
623633
help="""Flag to turn on Analytic Initial
624634
Conditions (ICs).""")
625635

626-
parser.add_argument("--dyn_kind", "-dyn_kind",
627-
type=str, required=False, default="REAL64",
636+
parser.add_argument("--dyn-kind",
637+
type=str,
638+
required=False,
639+
metavar='<kind string>',
640+
default="REAL64",
628641
help="""Fortran kind used in dycore for type real.""")
629642

630-
parser.add_argument("--phys_kind", "-phys_kind",
631-
type=str, required=False, default="REAL64",
643+
parser.add_argument("--phys-kind",
644+
type=str,
645+
required=False,
646+
metavar='<kind string>',
647+
default="REAL64",
632648
help="""Fortran kind used in physics for type real.""")
633649

634650
popts = [opt for opt in config_opts.split(" ") if opt]

cime_config/config_component.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@
162162

163163
<!-- Simple models -->
164164
<value compset="_CAM%ADIAB">--physics-suites adiabatic</value>
165-
<value compset="_CAM%TJ16">--physics-suites tj2016 --analytic_ic</value>
165+
<value compset="_CAM%TJ16">--physics-suites tj2016 --analytic-ic</value>
166166
<!-- <value compset="_CAM%KESSLER">-phys kessler -chem terminator -analytic_ic</value> -->
167-
<value compset="_CAM%KESSLER">--physics-suites kessler --analytic_ic</value>
168-
<value compset="_CAM%HS94">--physics-suites held_suarez_1994 --analytic_ic</value>
167+
<value compset="_CAM%KESSLER">--physics-suites kessler --analytic-ic</value>
168+
<value compset="_CAM%HS94">--physics-suites held_suarez_1994 --analytic-ic</value>
169169
<value compset="_CAM%PHYSTEST">--dyn none --physics-suites adiabatic</value>
170170

171171
<!-- Aquaplanet -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
./xmlchange CAM_LINKED_LIBS=" "
2-
./xmlchange --append CAM_CONFIG_OPTS="--analytic_ic"
2+
./xmlchange --append CAM_CONFIG_OPTS="--analytic-ic"

src/physics/utils/orbital_data.meta

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99
units = rad
1010
type = real | kind = kind_phys
1111
dimensions = ()
12+
protected = True
1213
[earth_sun_distance]
1314
standard_name = earth_sun_distance
1415
units = AU
1516
type = real | kind = kind_phys
1617
dimensions = ()
18+
protected = True
1719
[solar_zenith_angle]
1820
standard_name = solar_zenith_angle
1921
units = rad
2022
type = real | kind = kind_phys
21-
dimensions = (horizontal_dimension)
23+
dimensions = (horizontal_dimension)
24+
protected = True

test/unit/test_cam_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self):
6767
"COMP_ATM" : "cam",
6868
"EXEROOT" : "/some/made-up/path",
6969
"CASEROOT" : "/another/made-up/path",
70-
"CAM_CONFIG_OPTS" : "-dyn none --physics-suites mango;papaya",
70+
"CAM_CONFIG_OPTS" : "--dyn none --physics-suites mango;papaya",
7171
"COMP_ROOT_DIR_ATM" : "/a/third/made-up/path",
7272
"CAM_CPPDEFS" : "UNSET",
7373
"NTHRDS_ATM" : 1,

0 commit comments

Comments
 (0)