Skip to content

Commit

Permalink
Remove generating master index files from fcst job
Browse files Browse the repository at this point in the history
  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: NOAA-EMC#94
  • Loading branch information
XianwuXue-NOAA committed Feb 17, 2023
1 parent 69f36a5 commit 95d9878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 48 deletions.
5 changes: 2 additions & 3 deletions rocoto/bin/wcoss2/forecast_hr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
45 changes: 0 additions & 45 deletions scripts/exgefs_forecast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 95d9878

Please sign in to comment.