Skip to content

Commit

Permalink
Exception handling if anl input not found (NOAA-EMC#443)
Browse files Browse the repository at this point in the history
* modified:   scripts/exgdas_atmos_nceppost.sh

* modified:   scripts/exgfs_atmos_nceppost.sh
  • Loading branch information
lgannoaa committed Feb 9, 2022
1 parent 3cf3a37 commit e293109
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/exgdas_atmos_nceppost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ echo " Aug 20 - Meng - Remove .ecf extentsion per EE2 review."
echo " Sep 20 - Meng - Update clean up files per EE2 review."
echo " Mar 21 - Meng - Update POSTGRB2TBL default setting."
echo " Oct 21 - Meng - Remove jlogfile for wcoss2 transition."
echo " Feb 22 - Lin - Exception handling if anl input not found."
echo "-----------------------------------------------------"
#####################################################################

Expand Down Expand Up @@ -178,6 +179,11 @@ then

fi
rm pgbfile.grib2
else
#### atmanl file not found need failing job
echo " *** FATAL ERROR: No model anl file output "
export err=9
err_chk
fi

#----------------------------------
Expand Down
7 changes: 6 additions & 1 deletion scripts/exgfs_atmos_nceppost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ echo " Mar 21 - Meng - Update POSTGRB2TBL default setting."
echo " Jun 21 - Mao - Instead of err_chk, catch err and print out"
echo " WAFS failure warnings to avoid job crashing"
echo " Oct 21 - Meng - Remove jlogfile for wcoss2 transition."
echo " Feb 22 - Lin - Exception handling if anl input not found."
echo "-----------------------------------------------------"
#####################################################################

Expand Down Expand Up @@ -235,7 +236,11 @@ then
fi
fi
########################## WAFS U/V/T analysis end ##########################

else
#### atmanl file not found need failing job
echo " *** FATAL ERROR: No model anl file output "
export err=9
err_chk
fi

#----------------------------------
Expand Down

0 comments on commit e293109

Please sign in to comment.