@@ -17,7 +17,7 @@ step=$1
1717
1818# WCOSS2 information
1919export launcher=" mpiexec -l"
20- export mpmd =" --cpu-bind verbose,core cfp"
20+ export mpmd_opt =" --cpu-bind verbose,core cfp"
2121
2222export npe_node_max=128
2323
@@ -37,13 +37,13 @@ elif [ $step = "waveinit" -o $step = "waveprep" -o $step = "wavepostsbs" -o $ste
3737
3838 if [ $step = " waveprep" -a $CDUMP = " gfs" ]; then NTASKS=$NTASKS_gfs ; fi
3939 export wavempexec=" $launcher -np"
40- export wave_mpmd=${mpmd }
40+ export wave_mpmd=${mpmd_opt }
4141
4242elif [ $step = " atmanalrun" ]; then
4343
4444 export CFP_MP=${CFP_MP:- " YES" }
4545 export USE_CFP=${USE_CFP:- " YES" }
46- export APRUNCFP=" $launcher -np \$ ncmd $mpmd "
46+ export APRUNCFP=" $launcher -np \$ ncmd ${mpmd_opt} "
4747
4848 nth_max=$(( $npe_node_max / $npe_node_atmanalrun ))
4949
@@ -55,7 +55,7 @@ elif [ $step = "atmensanalrun" ]; then
5555
5656 export CFP_MP=${CFP_MP:- " YES" }
5757 export USE_CFP=${USE_CFP:- " YES" }
58- export APRUNCFP=" $launcher -np \$ ncmd $mpmd "
58+ export APRUNCFP=" $launcher -np \$ ncmd ${mpmd_opt} "
5959
6060 nth_max=$(( $npe_node_max / $npe_node_atmensanalrun ))
6161
@@ -65,7 +65,7 @@ elif [ $step = "atmensanalrun" ]; then
6565
6666elif [ $step = " aeroanlrun" ]; then
6767
68- export APRUNCFP=" $launcher -np \$ ncmd $mpmd "
68+ export APRUNCFP=" $launcher -np \$ ncmd ${mpmd_opt} "
6969
7070 nth_max=$(( $npe_node_max / $npe_node_aeroanlrun ))
7171
@@ -108,7 +108,7 @@ elif [ $step = "anal" -o $step = "analcalc" ]; then
108108
109109 export CFP_MP=${CFP_MP:- " NO" }
110110 export USE_CFP=${USE_CFP:- " YES" }
111- export APRUNCFP=" $launcher -np \$ ncmd $mpmd "
111+ export APRUNCFP=" $launcher -np \$ ncmd ${mpmd_opt} "
112112
113113elif [ $step = " sfcanl" ]; then
114114
@@ -138,7 +138,7 @@ elif [ $step = "gldas" ]; then
138138 # periods being processed.
139139 export USE_CFP=${USE_CFP:- " YES" }
140140 npe_gldas_data_proc=$(( $gldas_spinup_hours + 12 ))
141- export APRUN_GLDAS_DATA_PROC=" $launcher -np $npe_gldas_data_proc $mpmd "
141+ export APRUN_GLDAS_DATA_PROC=" $launcher -np $npe_gldas_data_proc ${mpmd_opt} "
142142
143143elif [ $step = " eobs" ]; then
144144
@@ -154,7 +154,7 @@ elif [ $step = "eobs" ]; then
154154
155155 export CFP_MP=${CFP_MP:- " NO" }
156156 export USE_CFP=${USE_CFP:- " YES" }
157- export APRUNCFP=" $launcher -np \$ ncmd $mpmd "
157+ export APRUNCFP=" $launcher -np \$ ncmd ${mpmd_opt} "
158158
159159elif [ $step = " eupd" ]; then
160160
@@ -171,7 +171,7 @@ elif [ $step = "eupd" ]; then
171171
172172 export CFP_MP=${CFP_MP:- " NO" }
173173 export USE_CFP=${USE_CFP:- " YES" }
174- export APRUNCFP=" $launcher -np \$ ncmd $mpmd "
174+ export APRUNCFP=" $launcher -np \$ ncmd ${mpmd_opt} "
175175
176176elif [ $step = " fcst" ]; then
177177
@@ -231,7 +231,7 @@ elif [ $step = "post" ]; then
231231
232232 export NTHREADS_DWN=${nth_dwn:- 1}
233233 [[ $NTHREADS_DWN -gt $nth_max ]] && export NTHREADS_DWN=$nth_max
234- export APRUN_DWN=" $launcher -np $npe_dwn $mpmd "
234+ export APRUN_DWN=" $launcher -np $npe_dwn ${mpmd_opt} "
235235
236236elif [ $step = " ecen" ]; then
237237
@@ -290,23 +290,23 @@ elif [ $step = "postsnd" ]; then
290290
291291 export NTHREADS_POSTSNDCFP=${nth_postsndcfp:- 1}
292292 [[ $NTHREADS_POSTSNDCFP -gt $nth_max ]] && export NTHREADS_POSTSNDCFP=$nth_max
293- export APRUN_POSTSNDCFP=" $launcher -np $npe_postsndcfp $mpmd "
293+ export APRUN_POSTSNDCFP=" $launcher -np $npe_postsndcfp ${mpmd_opt} "
294294
295295elif [ $step = " awips" ]; then
296296
297297 nth_max=$(( $npe_node_max / $npe_node_awips ))
298298
299299 export NTHREADS_AWIPS=${nth_awips:- 2}
300300 [[ $NTHREADS_AWIPS -gt $nth_max ]] && export NTHREADS_AWIPS=$nth_max
301- export APRUN_AWIPSCFP=" $launcher -np $npe_awips $mpmd "
301+ export APRUN_AWIPSCFP=" $launcher -np $npe_awips ${mpmd_opt} "
302302
303303elif [ $step = " gempak" ]; then
304304
305305 nth_max=$(( $npe_node_max / $npe_node_gempak ))
306306
307307 export NTHREADS_GEMPAK=${nth_gempak:- 1}
308308 [[ $NTHREADS_GEMPAK -gt $nth_max ]] && export NTHREADS_GEMPAK=$nth_max
309- export APRUN_GEMPAKCFP=" $launcher -np $npe_gempak $mpmd "
309+ export APRUN_GEMPAKCFP=" $launcher -np $npe_gempak ${mpmd_opt} "
310310
311311elif [ $step = " waveawipsbulls" ]; then
312312
0 commit comments