Skip to content

Commit 7f74f56

Browse files
authored
Merge branch 'develop' into feature/wjiang/use_mapl_read_write_nc4
2 parents facca90 + 608bf9d commit 7f74f56

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_shared.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
import glob
77

8-
BUILT_ON_SLES15 = "@BUILT_ON_SLES15@"
98
def get_script_head() :
109

1110
head = """#!/bin/csh -x
@@ -18,14 +17,12 @@ def get_script_head() :
1817
#SBATCH --job-name={GRIDNAME}.j
1918
"""
2019
constraint = '#SBATCH --constraint="[mil|cas]"'
21-
#if 'TRUE' not in BUILT_ON_SLES15:
22-
# constraint = "#SBATCH --constraint=sky"
2320

2421
head = head + constraint + """
25-
echo "-----------------------------"
26-
echo "make_bcs starts date/time"
27-
echo `date`
28-
echo "-----------------------------"
22+
echo "-----------------------------"
23+
echo "make_bcs starts date/time"
24+
echo `date`
25+
echo "-----------------------------"
2926
3027
cd {SCRATCH_DIR}
3128
@@ -141,7 +138,7 @@ def get_script_mv(grid_type):
141138
clsm/country_and_state_code.data \\
142139
land/{GRIDNAME}/clsm/
143140
144-
"""
141+
"""
145142
mv_template = mv_template + get_change_til_file(grid_type)
146143
mv_template = mv_template + """
147144
@@ -151,10 +148,10 @@ def get_script_mv(grid_type):
151148
152149
mkdir -p ../../geometry ../../land/shared ../../logs
153150
154-
echo "-----------------------------"
155-
echo "make_bcs ends date/time"
156-
echo `date`
157-
echo "-----------------------------"
151+
echo "-----------------------------"
152+
echo "make_bcs ends date/time"
153+
echo `date`
154+
echo "-----------------------------"
158155
159156
/bin/mv ../logs/{GRIDNAME} ../../logs/.
160157
@@ -167,7 +164,7 @@ def get_script_mv(grid_type):
167164
168165
/bin/rm -r {TMP_DIR}
169166
170-
# if necessary, copy resolution-independent CO2 file from MAKE_BCS_INPUT_DIR to bcs dir
167+
# if necessary, copy resolution-independent CO2 file from MAKE_BCS_INPUT_DIR to bcs dir
171168
172169
if(-f land/shared/CO2_MonthlyMean_DiurnalCycle.nc4) then
173170
echo "CO2_MonthlyMean_DiurnalCycle.nc4 already present in bcs dir."

GEOSogcm_GridComp/GEOS_OgcmGridComp.F90

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -805,12 +805,14 @@ subroutine SetServices ( GC, RC )
805805
SRC_ID = SEAICE, &
806806
RC=STATUS )
807807
VERIFY_(STATUS)
808-
call MAPL_AddConnectivity ( GC, &
809-
SHORT_NAME = (/'UWC','VWC'/), &
810-
SRC_ID = OCEAN, &
811-
DST_ID = SEAICE, &
812-
_RC)
813-
endif
808+
if (trim(OCEAN_NAME) /= "MIT") then !
809+
call MAPL_AddConnectivity ( GC, &
810+
SHORT_NAME = (/'UWC','VWC'/), &
811+
SRC_ID = OCEAN, &
812+
DST_ID = SEAICE, &
813+
_RC)
814+
endif
815+
end if
814816
end if
815817

816818
if (DO_CICE_THERMO > 1) then

0 commit comments

Comments
 (0)