From d2b6b70ba1db948b736e40df3f2cc2948afe6fd1 Mon Sep 17 00:00:00 2001 From: AliS-Noaa Date: Wed, 8 Jan 2025 17:18:59 +0000 Subject: [PATCH] concising the exgfs_wave_post_pnt.sh and config files, issue #3157 --- parm/config/config.resources.emc.dyn | 6 ++--- parm/config/config.resources.nco.static | 6 ++--- scripts/exgfs_wave_post_pnt.sh | 29 +++++-------------------- 3 files changed, 11 insertions(+), 30 deletions(-) diff --git a/parm/config/config.resources.emc.dyn b/parm/config/config.resources.emc.dyn index 6a6e657390..5236159121 100755 --- a/parm/config/config.resources.emc.dyn +++ b/parm/config/config.resources.emc.dyn @@ -85,7 +85,7 @@ elif [ $step = "wavepostbndpnt" ]; then export wtime_wavepostbndpnt="00:30:00" export npe_wavepostbndpnt=1 export nth_wavepostbndpnt=1 - export npe_node_wavepostbndpnt=1 + export npe_node_wavepostbndpnt=${npe_wavepostbndpnt} export NTASKS=$npe_wavepostbndpnt elif [ $step = "wavepostbndpntbll" ]; then @@ -93,7 +93,7 @@ elif [ $step = "wavepostbndpntbll" ]; then export wtime_wavepostbndpntbll="00:10:00" export npe_wavepostbndpntbll=2 export nth_wavepostbndpntbll=1 - export npe_node_wavepostbndpntbll=2 + export npe_node_wavepostbndpntbll=${npe_wavepostbndpntbll} export NTASKS=$npe_wavepostbndpntbll elif [ $step = "wavepostpnt" ]; then @@ -101,7 +101,7 @@ elif [ $step = "wavepostpnt" ]; then export wtime_wavepostpnt="00:35:00" export npe_wavepostpnt=3 export nth_wavepostpnt=1 - export npe_node_wavepostpnt=3 + export npe_node_wavepostpnt=${npe_wavepostpnt} export NTASKS=$npe_wavepostpnt elif [ $step = "wavegempak" ]; then diff --git a/parm/config/config.resources.nco.static b/parm/config/config.resources.nco.static index f50faa1772..4e22917b25 100755 --- a/parm/config/config.resources.nco.static +++ b/parm/config/config.resources.nco.static @@ -69,7 +69,7 @@ elif [ $step = "wavepostbndpnt" ]; then export wtime_wavepostbndpnt="00:30:00" export npe_wavepostbndpnt=1 export nth_wavepostbndpnt=1 - export npe_node_wavepostbndpnt=1 + export npe_node_wavepostbndpnt=${npe_wavepostbndpnt} export NTASKS=$npe_wavepostbndpnt elif [ $step = "wavepostbndpntbll" ]; then @@ -77,7 +77,7 @@ elif [ $step = "wavepostbndpntbll" ]; then export wtime_wavepostbndpntbll="00:10:00" export npe_wavepostbndpntbll=2 export nth_wavepostbndpntbll=1 - export npe_node_wavepostbndpntbll=2 + export npe_node_wavepostbndpntbll=${npe_wavepostbndpntbll} export NTASKS=$npe_wavepostbndpntbll elif [ $step = "wavepostpnt" ]; then @@ -85,7 +85,7 @@ elif [ $step = "wavepostpnt" ]; then export wtime_wavepostpnt="00:35:00" export npe_wavepostpnt=3 export nth_wavepostpnt=1 - export npe_node_wavepostpnt=3 + export npe_node_wavepostpnt=${npe_wavepostpnt} export NTASKS=$npe_wavepostpnt elif [ $step = "wavegempak" ]; then diff --git a/scripts/exgfs_wave_post_pnt.sh b/scripts/exgfs_wave_post_pnt.sh index c64f310ca0..7875816828 100755 --- a/scripts/exgfs_wave_post_pnt.sh +++ b/scripts/exgfs_wave_post_pnt.sh @@ -364,7 +364,7 @@ fhr=$fhrp # no gridded output, loop with out_pnt stride done - if [ "$DOSPC_WAV" = 'YES' ] && [ "$DOBLL_WAV" = "NO" ]; then + if [ "$DOSPC_WAV" = 'YES' ]; then sed -e "s/TIME/$tstart/g" \ -e "s/DT/$dtspec/g" \ -e "s/999/$N/g" \ @@ -372,10 +372,12 @@ -e "s/ITYPE/1/g" \ -e "s/FORMAT/F/g" \ ww3_outp_spec.inp.tmpl > ww3_outp.inp - + $EXECwave/ww3_outp ${WAV_MOD_TAG} 1> ww3_outp_spec.log 2>&1 - elif [ "$DOSPC_WAV" = 'NO' ] && [ "$DOBLL_WAV" = "YES" ]; then + fi + + if [ "$DOBLL_WAV" = "YES" ]; then sed -e "s/TIME/$tstart/g" \ -e "s/DT/$dtspec/g" \ -e "s/999/$N/g" \ @@ -384,27 +386,6 @@ ww3_outp_bull.inp.tmpl > ww3_outp.inp $EXECwave/ww3_outp ${WAV_MOD_TAG} 1> ww3_outp_bull.log 2>&1 - - elif [[ "$DOSPC_WAV" == "YES" && "$DOBLL_WAV" == "YES" ]]; then - sed -e "s/TIME/$tstart/g" \ - -e "s/DT/$dtspec/g" \ - -e "s/999/$N/g" \ - -e "s|POINT|$points|g" \ - -e "s/ITYPE/1/g" \ - -e "s/FORMAT/F/g" \ - ww3_outp_spec.inp.tmpl > ww3_outp.inp - - $EXECwave/ww3_outp ${WAV_MOD_TAG} 1> ww3_outp_spec.log 2>&1 - - sed -e "s/TIME/$tstart/g" \ - -e "s/DT/$dtspec/g" \ - -e "s/999/$N/g" \ - -e "s|POINT|$points|g" \ - -e "s/REFT/$truntime/g" \ - ww3_outp_bull.inp.tmpl > ww3_outp.inp - - $EXECwave/ww3_outp ${WAV_MOD_TAG} 1> ww3_outp_bull.log 2>&1 - fi # --------------------------------------------------------------------------- #