File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 55import os
66import glob
77
8+ CONSTRAINT = 'sky|cas'
9+ BUILT_ON_SLES15 = "@BUILT_ON_SLES15@"
810def get_script_head () :
911
10- return """#!/bin/csh -x
12+ head = """#!/bin/csh -x
1113
1214#SBATCH --output={EXPDIR}/{TMP_DIR}/logs/{GRIDNAME}/{GRIDNAME2}.log
1315#SBATCH --error={EXPDIR}/{TMP_DIR}/logs/{GRIDNAME}/{GRIDNAME2}.err
1416#SBATCH --account={account}
1517#SBATCH --time=12:00:00
1618#SBATCH --nodes=1
1719#SBATCH --job-name={GRIDNAME2}.j
18- #SBATCH --constraint=sky|cas|mil
20+ """
21+ constraint = "#SBATCH --constraint=sky|cas"
22+ if BUILT_ON_SLES15 :
23+ constraint = "#SBATCH --constraint=mil"
1924
25+ head = head + constraint + """
2026echo "-----------------------------"
2127echo "make_bcs starts date/time"
2228echo `date`
@@ -37,6 +43,7 @@ def get_script_head() :
3743 mkdir -p geometry land/shared til rst data/MOM5 data/MOM6 clsm/plots
3844endif
3945"""
46+ return head
4047
4148def get_change_til_file (grid_type ):
4249 script = ""
You can’t perform that action at this time.
0 commit comments