Skip to content

Commit 0d45879

Browse files
Only add CPU ranks to gempak CFP file when needed
The gempak j-job was always adding the CPU ranks to the CFP command file. These are only needed (or allowed) on slurm, which prevented the job from running properly on WCOSS2. Following the paradigm of existing jobs, now the ranks are only added if `$CFP_MP` is "YES".
1 parent dcebeee commit 0d45879

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jobs/JGFS_ATMOS_GEMPAK

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,11 @@ echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs35_atl 180 GFS_GEMPAK_WWB &> ${DAT
104104
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs40 180 GFS_GEMPAK_WWB &> ${DATA}/gfs40.$$.1 " >>poescript
105105
echo "time ${SRCgfs}/exgfs_atmos_nawips.sh gfs40 180 GFS_GEMPAK_WWB &> ${DATA}/gfs40.$$.2 " >>poescript
106106

107-
# Add task number to the MPMD script
108-
nl -n ln -v 0 poescript > poescript.new
109-
mv poescript.new poescript
107+
if [[ ${CFP_MP:-"NO"} == "YES" ]]; then
108+
# Add task number to the MPMD script
109+
nl -n ln -v 0 poescript > poescript.new
110+
mv poescript.new poescript
111+
fi
110112

111113
cat poescript
112114

0 commit comments

Comments
 (0)