Skip to content

Commit

Permalink
Merge pull request #2023 from jedwards4b/fix_unitialized_var
Browse files Browse the repository at this point in the history
fix machines option to srt and unitialzed var

Fix an unitialized variable in prep_ocn_mod.F90, fix the --machine option to scripts_regression_tests.py

Test suite: scripts_regression_tests.py
Test baseline:
Test namelist changes:
Test status: [bit for bit, roundoff, climate changing]

Fixes #1952
Fixes #2019

User interface changes?:

Update gh-pages html (Y/N)?:

Code review:
  • Loading branch information
jgfouca authored Nov 2, 2017
2 parents 2978605 + 4df87b7 commit cd181bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/tests/scripts_regression_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
TEST_COMPILER = None
GLOBAL_TIMEOUT = None
TEST_MPILIB = None
MACHINE = Machines()
MACHINE = None
FAST_ONLY = False
NO_BATCH = False
NO_CMAKE = False
Expand Down Expand Up @@ -2466,9 +2466,10 @@ def _main_func():
midx = sys.argv.index("--machine")
mach_name = sys.argv[midx + 1]
MACHINE = Machines(machine=mach_name)
os.environ["CIME_MACHINE"] = mach_name
del sys.argv[midx + 1]
del sys.argv[midx]
else:
MACHINE = Machines()

if "--compiler" in sys.argv:
global TEST_COMPILER
Expand Down
1 change: 1 addition & 0 deletions src/drivers/mct/main/prep_ocn_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ subroutine prep_ocn_init(infodata, atm_c2_ocn, atm_c2_ice, ice_c2_ocn, rof_c2_oc
wav_gnam=wav_gnam , &
atm_nx=atm_nx , &
atm_ny=atm_ny , &
glc_gnam=glc_gnam , &
esmf_map_flag=esmf_map_flag )

allocate(mapper_Sa2o)
Expand Down

0 comments on commit cd181bb

Please sign in to comment.