Skip to content

Commit

Permalink
Clean up the unused statements
Browse files Browse the repository at this point in the history
 On branch feature/gefs_v12_github_port2acorn
	modified:   scripts/exwave_init.sh
	modified:   scripts/exwave_post_sbs.sh
	modified:   scripts/exwave_prep.sh
	modified:   sorc/machine-setup.sh
	modified:   ush/wave_grid_moddef.sh

Refs: NOAA-EMC#345
  • Loading branch information
XianwuXue-NOAA committed Nov 15, 2021
1 parent 3e39692 commit 7c12d40
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 23 deletions.
13 changes: 6 additions & 7 deletions scripts/exwave_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@

msg="HAS BEGUN on `hostname`"
postmsg "$msg"
echo $msg

msg="Starting MWW3 INIT CONFIG SCRIPT for $COMPONENTwave"
postmsg "$msg"
echo $msg


set +x
echo ' '
Expand Down Expand Up @@ -119,7 +119,7 @@
else
msg="ABNORMAL EXIT: NO INP FILE FOR MODEL DEFINITION FILE"
postmsg "$msg"
echo $msg

set +x
echo ' '
echo '*********************************************************** '
Expand Down Expand Up @@ -168,8 +168,7 @@

if [ "$NTASKS" -gt '1' ]
then
#${wavempexec} ${wavenproc} ${wave_mpmd} cmdfile
${wavempexec} ${wave_mpmd} cmdfile #${wavenproc} ${wave_mpmd} cmdfile
${wavempexec} ${wave_mpmd} cmdfile
exit=$?
else
./cmdfile
Expand Down Expand Up @@ -204,7 +203,7 @@
else
msg="ABNORMAL EXIT: NO MODEL DEFINITION FILE"
postmsg "$msg"
echo $msg

set +x
echo ' '
echo '********************************************** '
Expand Down Expand Up @@ -234,6 +233,6 @@

msg="$job completed normally"
postmsg "$msg"
echo $msg


# End of MWW3 init config script ------------------------------------------- #
2 changes: 0 additions & 2 deletions scripts/exwave_post_sbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@

if [ "$wavenproc" -gt '1' ]
then
#${wavempexec} ${wavenproc} ${wave_mpmd} ${fcmdnow}
${wavempexec} ${wave_mpmd} ${fcmdnow}
exit=$?
else
Expand Down Expand Up @@ -788,7 +787,6 @@

if [ "$wavenproc" -gt '1' ]
then
#${wavempexec} ${wavenproc} ${wave_mpmd} cmdtarfile
${wavempexec} ${wave_mpmd} cmdtarfile
exit=$?
else
Expand Down
2 changes: 0 additions & 2 deletions scripts/exwave_prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@

if [ "$wavenproc" -gt '1' ]
then
#${wavempexec} ${wavenproc} ${wave_mpmd} cmdfile
${wavempexec} ${wave_mpmd} cmdfile
exit=$?
else
Expand Down Expand Up @@ -705,7 +704,6 @@

if [ $wavenproc -gt '1' ]
then
#${wavempexec} ${wavenproc} ${wave_mpmd} cmdfile
${wavempexec} ${wave_mpmd} cmdfile
exit=$?
else
Expand Down
8 changes: 1 addition & 7 deletions sorc/machine-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,7 @@ elif [[ -d /apps/prod ]]; then
target=wcoss2

module purge
#module use -a /apps/prod/modules
# For gefs_nemsio2nc
#module use /lfs/h1/ops/prod/libs/modulefiles/stack
#module load hpc
#module load hpc-intel
#module load hpc-cray-mpich
module load envvar/1.0
module load envvar/${envvar_ver:-1.0}

else
echo WARNING: UNKNOWN PLATFORM 1>&2
Expand Down
5 changes: 0 additions & 5 deletions ush/wave_grid_moddef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
[[ "$LOUD" != YES ]] && set +x

postmsg "Generating mod_def file"
echo "Generating mod_def file"

mkdir -p moddef_${1}
cd moddef_${1}
Expand Down Expand Up @@ -57,7 +56,6 @@
echo ' '
[[ "$LOUD" = YES ]] && set -x
postmsg "GRID IN ww3_mod_def.sh NOT SET"
echo "GRID IN ww3_mod_def.sh NOT SET"

exit 1
else
Expand All @@ -77,7 +75,6 @@
echo ' '
[[ "$LOUD" = YES ]] && set -x
postmsg "EXPORTED VARIABLES IN ww3_mod_def.sh NOT SET"
echo "EXPORTED VARIABLES IN ww3_mod_def.sh NOT SET"
exit 2
fi

Expand Down Expand Up @@ -107,7 +104,6 @@
echo ' '
[[ "$LOUD" = YES ]] && set -x
postmsg "FATAL ERROR : ERROR IN ww3_grid"
echo "FATAL ERROR : ERROR IN ww3_grid"
exit 3
fi

Expand All @@ -124,7 +120,6 @@
echo ' '
[[ "$LOUD" = YES ]] && set -x
postmsg "FATAL ERROR : Mod def File creation FAILED"
echo "FATAL ERROR : Mod def File creation FAILED"
exit 4
fi

Expand Down

0 comments on commit 7c12d40

Please sign in to comment.