Skip to content

Commit 77f94f3

Browse files
Double-quote CASE
1 parent 61bf9b1 commit 77f94f3

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

parm/config/gfs/config.resources

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ case ${step} in
329329

330330
"snowanl")
331331
# below lines are for creating JEDI YAML
332-
case ${CASE} in
332+
case "${CASE}" in
333333
"C1152" | "C768")
334334
layout_x=6
335335
layout_y=6
@@ -358,7 +358,7 @@ case ${step} in
358358

359359
"esnowanl")
360360
# below lines are for creating JEDI YAML
361-
case ${CASE} in
361+
case "${CASE}" in
362362
"C1152" | "C768")
363363
layout_x=6
364364
layout_y=6
@@ -395,7 +395,7 @@ case ${step} in
395395

396396
"aeroanlinit")
397397
# below lines are for creating JEDI YAML
398-
case ${CASE} in
398+
case "${CASE}" in
399399
"C1152" | "C768")
400400
layout_x=8
401401
layout_y=8
@@ -428,7 +428,7 @@ case ${step} in
428428
;;
429429

430430
"aeroanlvar")
431-
case ${CASE} in
431+
case "${CASE}" in
432432
"C1152" | "C768")
433433
layout_x=8
434434
layout_y=8
@@ -462,7 +462,7 @@ case ${step} in
462462
;;
463463

464464
"aeroanlgenb")
465-
case ${CASE} in
465+
case "${CASE}" in
466466
"C1152" | "C768")
467467
layout_x=8
468468
layout_y=8
@@ -676,7 +676,7 @@ case ${step} in
676676
"anal")
677677
walltime_gdas="01:20:00"
678678
walltime_gfs="01:00:00"
679-
case ${CASE} in
679+
case "${CASE}" in
680680
"C1152" | "C768")
681681
ntasks_gdas=780
682682
ntasks_gfs=825
@@ -953,7 +953,7 @@ case ${step} in
953953
;;
954954
esac
955955
tasks_per_node=${ntasks}
956-
if [[ ${CASE} == "C1152" ]]; then
956+
if [[ "${CASE}" == "C1152" ]]; then
957957
tasks_per_node=40
958958
fi
959959

@@ -1029,7 +1029,7 @@ case ${step} in
10291029
threads_per_task=1
10301030
tasks_per_node=1
10311031
memory="20G"
1032-
if [[ ${CASE} == "C768" || ${CASE} == "C1152" ]]; then
1032+
if [[ "${CASE}" == "C768" || "${CASE}" == "C1152" ]]; then
10331033
memory="80GB"
10341034
fi
10351035
;;
@@ -1178,7 +1178,7 @@ case ${step} in
11781178
walltime="00:30:00"
11791179
fi
11801180

1181-
case ${CASE} in
1181+
case "${CASE}" in
11821182
"C1152" | "C768") ntasks=200;;
11831183
"C384") ntasks=100;;
11841184
"C192" | "C96" | "C48") ntasks=40;;
@@ -1211,7 +1211,7 @@ case ${step} in
12111211

12121212
"eupd")
12131213
walltime="00:30:00"
1214-
case ${CASE} in
1214+
case "${CASE}" in
12151215
"C1152" | "C768")
12161216
ntasks=480
12171217
threads_per_task=6
@@ -1237,7 +1237,7 @@ case ${step} in
12371237
walltime="00:10:00"
12381238
ntasks=80
12391239
threads_per_task=4
1240-
if [[ ${CASE} == "C384" || ${CASE} == "C192" || ${CASE} == "C96" || ${CASE} == "C48" ]]; then
1240+
if [[ "${CASE}" == "C384" || "${CASE}" == "C192" || "${CASE}" == "C96" || "${CASE}" == "C48" ]]; then
12411241
threads_per_task=2
12421242
fi
12431243
tasks_per_node=$(( max_tasks_per_node / threads_per_task ))
@@ -1257,7 +1257,7 @@ case ${step} in
12571257

12581258
"epos")
12591259
walltime="00:15:00"
1260-
if [[ ${CASE} == "C768" || ${CASE} == "C1152" ]]; then
1260+
if [[ "${CASE}" == "C768" || "${CASE}" == "C1152" ]]; then
12611261
walltime="00:25:00"
12621262
fi
12631263
ntasks=80
@@ -1270,7 +1270,7 @@ case ${step} in
12701270
walltime="02:00:00"
12711271
export ntasks=141
12721272
export ntasks_postsndcfp=9
1273-
case ${CASE} in
1273+
case "${CASE}" in
12741274
"C768")
12751275
tasks_per_node=21
12761276
threads_per_task=6

parm/config/gfs/config.resources.HERA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ case ${step} in
3131
;;
3232

3333
"eupd")
34-
case ${CASE} in
34+
case "${CASE}" in
3535
"C1152" | "C768")
3636
export ntasks=80
3737
export threads_per_task=20

parm/config/gfs/config.resources.HERCULES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ case ${step} in
77
# The number of tasks and cores used must be the same for eobs
88
# See https://github.com/NOAA-EMC/global-workflow/issues/2092 for details
99
# For Hercules, this is only an issue at C384; use 20 tasks/node
10-
if [[ ${CASE} = "C384" ]]; then
10+
if [[ "${CASE}" = "C384" ]]; then
1111
export tasks_per_node=20
1212
fi
1313
;;

parm/config/gfs/config.resources.JET

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ case ${step} in
2626
;;
2727

2828
"eupd")
29-
case ${CASE} in
29+
case "${CASE}" in
3030
"C384")
3131
export ntasks=80
3232
;;

parm/config/gfs/config.resources.S4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ case ${step} in
1010
;;
1111

1212
"anal")
13-
case ${CASE} in
13+
case "${CASE}" in
1414
"C384")
1515
#Some of the intermediate data can be lost if the number of tasks
1616
#per node does not match the number of reserved cores/node.

parm/config/gfs/config.resources.WCOSS2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ case ${step} in
4242
;;
4343

4444
"eupd")
45-
case ${CASE} in
45+
case "${CASE}" in
4646
"C1152" | "C768" | "C384")
4747
export ntasks=315
4848
export threads_per_task=14
@@ -54,7 +54,7 @@ case ${step} in
5454
;;
5555

5656
"eobs")
57-
case ${CASE} in
57+
case "${CASE}" in
5858
"C1152" | "C768" | "C384")
5959
export tasks_per_node=50
6060
;;

0 commit comments

Comments
 (0)