Skip to content

Commit 1d1eca8

Browse files
committed
submitted job by built
1 parent cfb2493 commit 1d1eca8

File tree

1 file changed

+9
-2
lines changed
  • GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,24 @@
55
import os
66
import glob
77

8+
CONSTRAINT = 'sky|cas'
9+
BUILT_ON_SLES15 = "@BUILT_ON_SLES15@"
810
def 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 + """
2026
echo "-----------------------------"
2127
echo "make_bcs starts date/time"
2228
echo `date`
@@ -37,6 +43,7 @@ def get_script_head() :
3743
mkdir -p geometry land/shared til rst data/MOM5 data/MOM6 clsm/plots
3844
endif
3945
"""
46+
return head
4047

4148
def get_change_til_file(grid_type):
4249
script = ""

0 commit comments

Comments
 (0)