From 95d98787f2e68a90ed36924e8020d6584669e022 Mon Sep 17 00:00:00 2001 From: "Xianwu.Xue" Date: Fri, 17 Feb 2023 14:53:23 -0500 Subject: [PATCH] Remove generating master index files from fcst job since prdgen jobs will generate the index files if they are missing On branch feature/gefs_v13_atmos_prep Changes to be committed: modified: rocoto/bin/wcoss2/forecast_hr.sh modified: scripts/exgefs_forecast.sh Refs: #94 --- rocoto/bin/wcoss2/forecast_hr.sh | 5 ++-- scripts/exgefs_forecast.sh | 45 -------------------------------- 2 files changed, 2 insertions(+), 48 deletions(-) diff --git a/rocoto/bin/wcoss2/forecast_hr.sh b/rocoto/bin/wcoss2/forecast_hr.sh index 19785db2a..90d2e7eb3 100755 --- a/rocoto/bin/wcoss2/forecast_hr.sh +++ b/rocoto/bin/wcoss2/forecast_hr.sh @@ -20,12 +20,11 @@ module load cray-pals/$cray_pals_ver module load prod_util/$prod_util_ver module load prod_envir/$prod_envir_ver -module load libjpeg/$libjpeg_ver -module load grib_util/$grib_util_ver +#module load libjpeg/$libjpeg_ver +#module load grib_util/$grib_util_ver module load netcdf/$netcdf_ver module load hdf5/$hdf5_ver -#module load lsf/$lsf_ver module load cfp/$cfp_ver export USE_CFP=YES diff --git a/scripts/exgefs_forecast.sh b/scripts/exgefs_forecast.sh index 4b1b6051f..21ddae042 100755 --- a/scripts/exgefs_forecast.sh +++ b/scripts/exgefs_forecast.sh @@ -349,51 +349,6 @@ if [[ $err != 0 ]]; then exit $err fi -if [[ $SENDCOM == "YES" && $WRITE_DOPOST == ".true." ]]; then - if [[ ${NewCOM} == "YES" ]]; then - mkdir -m 775 -p ${memdir}/misc/post - else - mkdir -m 775 -p ${memdir}/../misc/post - fi - - # Convert output settings into an explicit list - OUTPUT_FH="" - FHMIN_LF=$FHMIN - if (( FHOUT_HF > 0 && FHMAX_HF > 0 )); then - for (( fh = FHMIN; fh < FHMAX_HF; fh = fh + FHOUT_HF )); do - OUTPUT_FH="$OUTPUT_FH $fh" - done - FHMIN_LF=$FHMAX_HF - fi - for (( fh = FHMIN_LF; fh <= FHMAX; fh = fh + FHOUT )); do - OUTPUT_FH="$OUTPUT_FH $fh" - done - - for fhr in $OUTPUT_FH; do - FH3=$(printf %03i $fhr) - - mafile=${memdir}/${CDUMP}.$cycle.master.grb2f${FH3} - mifile=${memdir}/${CDUMP}.$cycle.master.grb2if${FH3} - if [[ ${NewCOM} == "YES" ]]; then - mcfile=${memdir}/misc/post/${CDUMP}.$cycle.master.control.f${FH3} - else - mcfile=${memdir}/../misc/post/${CDUMP}.$cycle.master.control.f${FH3} - fi - - if [[ ! -s $mcfile ]]; then - if [[ -s $mafile ]]; then - ${GRB2INDEX} "${mafile}" "${mifile}" - export err=$? - if [[ $err != 0 ]]; then - echo "FATAL ERROR in ${BASH_SOURCE}: received a non-zero return code from generating master index files!" - exit $err - fi - echo "${PDY}${cyc}${FH3}" > $mcfile - fi - fi - done -fi - echo "$(date -u) end ${BASH_SOURCE}" exit $err