55import os
66import glob
77
8- BUILT_ON_SLES15 = "@BUILT_ON_SLES15@"
98def 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
3027cd {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
152149mkdir -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
172169if(-f land/shared/CO2_MonthlyMean_DiurnalCycle.nc4) then
173170 echo "CO2_MonthlyMean_DiurnalCycle.nc4 already present in bcs dir."
0 commit comments