@@ -503,6 +503,10 @@ def __init__(self, case, case_log):
503
503
"To specify the Kessler and Held-Suarez suites as " ,
504
504
"run time options, use '--physics-suites kessler;held_suarez_1994'." ]
505
505
506
+ #--------------------------
507
+ # Set physics_suites string
508
+ #--------------------------
509
+
506
510
self .create_config ("physics_suites" , phys_desc ,
507
511
user_config_opts .physics_suites )
508
512
@@ -585,7 +589,7 @@ def parse_config_opts(cls, config_opts, test_mode=False):
585
589
[('analytic_ic', False), ('dyn', 'se'), ('dyn_kind', 'REAL64'), ('phys_kind', 'REAL64'), ('physics_suites', 'kessler')]
586
590
587
591
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 ")
589
593
>>> vargs = vars(config_opts)
590
594
>>> [(x, vargs[x]) for x in sorted(vargs)]
591
595
[('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):
609
613
epilog = "Allowed values of " + cco_str )
610
614
611
615
#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>' ,
614
620
help = """Semicolon-separated list of Physics Suite
615
621
Definition Files (SDFs)""" )
616
622
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 = "" ,
619
628
help = """Name of dycore""" )
620
629
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 ,
623
633
help = """Flag to turn on Analytic Initial
624
634
Conditions (ICs).""" )
625
635
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" ,
628
641
help = """Fortran kind used in dycore for type real.""" )
629
642
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" ,
632
648
help = """Fortran kind used in physics for type real.""" )
633
649
634
650
popts = [opt for opt in config_opts .split (" " ) if opt ]
0 commit comments