Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test to compare gefs_v13_coupled_post_us_ge vs develop #2

Draft
wants to merge 75 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
5ee7ee7
Update experiment setup script for free-forecast ensemble
XianwuXue-NOAA Jun 10, 2022
5f4b433
add sorc/upp.fd to .gitignore
XianwuXue-NOAA Jun 10, 2022
e46d241
Update workflow setup script for free-forecast ensemble
XianwuXue-NOAA Jun 10, 2022
023901e
Merge branch 'develop' into feature/gefs_v13_789_setupexp
XianwuXue-NOAA Jun 10, 2022
74e5776
Merge branch 'develop' into feature/gefs_v13_828_add_ws
XianwuXue-NOAA Jun 10, 2022
1b5827c
Improve to run fcst (atm only)
XianwuXue-NOAA Jun 10, 2022
2abebbc
Improve to run init metatask for GEFS
XianwuXue-NOAA Jun 10, 2022
9713ba3
Add some comments to explain some lines
XianwuXue-NOAA Jun 13, 2022
1690adc
Change the == to in to match the normal python idiom
XianwuXue-NOAA Jun 13, 2022
d69ea9a
Fix a typo
XianwuXue-NOAA Jun 13, 2022
fe72933
Add options (resens_gefs and nens_gefs) and modify resens and nens
XianwuXue-NOAA Jun 14, 2022
34fecc8
Change NMEM_ENKF to NMEM_GEFS for GEFS
XianwuXue-NOAA Jun 14, 2022
7cb7506
Change the default value of option nens_gefs to ZERO
XianwuXue-NOAA Jun 14, 2022
aa60713
Remove unrelated change
XianwuXue-NOAA Jun 16, 2022
38733db
Change if to case
XianwuXue-NOAA Jun 22, 2022
aee83c0
Change back to resens and nens because GEFS may
XianwuXue-NOAA Jun 22, 2022
8f3815b
Fix some typo
XianwuXue-NOAA Jun 22, 2022
3d79789
Change NMEM_GEFS back to NMEM_ENKF
XianwuXue-NOAA Jun 22, 2022
fc25187
Add jobid to DATA for init
XianwuXue-NOAA Jun 22, 2022
3723636
Merge branch 'develop' into feature/gefs_v13_789_setupexp
XianwuXue-NOAA Jun 29, 2022
17d9b7d
Merge branch 'develop' into feature/gefs_v13_828_add_ws
XianwuXue-NOAA Jun 29, 2022
240fa96
Merge branch 'develop' into feature/gefs_v13_789_setupexp
XianwuXue-NOAA Jul 8, 2022
a8fabea
Merge branch 'develop' into feature/gefs_v13_828_add_ws
XianwuXue-NOAA Jul 8, 2022
542e1eb
Merge branch 'develop' into feature/gefs_v13_824_init
XianwuXue-NOAA Jul 8, 2022
38f5dce
Merge branch 'develop' into feature/gefs_v13_822_add_atm_fcst
XianwuXue-NOAA Jul 8, 2022
b8b97bb
Merge branch 'feature/gefs_v13_789_setupexp' into feature/gefs_v13_co…
XianwuXue-NOAA Jul 10, 2022
f8e9e5f
Add some temporarily changes for GEFS
XianwuXue-NOAA Jul 10, 2022
c33192e
Merge branch 'feature/gefs_v13_822_add_atm_fcst' into feature/gefs_v1…
XianwuXue-NOAA Jul 11, 2022
d1250de
Merge branch 'develop' into feature/gefs_v13_789_setupexp
XianwuXue-NOAA Jul 18, 2022
c1c6bc1
Merge branch 'develop' into feature/gefs_v13_824_init
XianwuXue-NOAA Jul 18, 2022
5571a3c
Merge branch 'develop' into feature/gefs_v13_828_add_ws
XianwuXue-NOAA Jul 18, 2022
0a7027d
Merge branch 'develop' into feature/gefs_v13_coupled
XianwuXue-NOAA Jul 18, 2022
fe5e830
Merge branch 'develop' into feature/gefs_v13_822_add_atm_fcst
XianwuXue-NOAA Jul 18, 2022
c7e7510
Merge branch 'develop' into feature/gefs_v13_789_setupexp
XianwuXue-NOAA Jul 18, 2022
4812945
Merge branch 'develop' into feature/gefs_v13_822_add_atm_fcst
XianwuXue-NOAA Jul 18, 2022
4f1d766
Merge branch 'develop' into feature/gefs_v13_824_init
XianwuXue-NOAA Jul 18, 2022
f7d7762
Merge branch 'develop' into feature/gefs_v13_828_add_ws
XianwuXue-NOAA Jul 18, 2022
b03ad92
Merge branch 'feature/gefs_v13_789_setupexp' into feature/gefs_v13_co…
XianwuXue-NOAA Jul 18, 2022
1e62ed7
Merge branch 'feature/gefs_v13_828_add_ws' into feature/gefs_v13_coupled
XianwuXue-NOAA Jul 18, 2022
59338a7
Merge branch 'feature/gefs_v13_822_add_atm_fcst' into feature/gefs_v1…
XianwuXue-NOAA Jul 18, 2022
07546e0
Merge branch 'develop' into feature/gefs_v13_789_setupexp
XianwuXue-NOAA Jul 19, 2022
bdd79d6
Merge branch 'develop' into feature/gefs_v13_828_add_ws
XianwuXue-NOAA Jul 19, 2022
039d062
Merge branch 'develop' into feature/gefs_v13_824_init
XianwuXue-NOAA Jul 19, 2022
01f344b
Merge branch 'develop' into feature/gefs_v13_822_add_atm_fcst
XianwuXue-NOAA Jul 19, 2022
a535540
Merge branch 'feature/gefs_v13_789_setupexp' into feature/gefs_v13_co…
XianwuXue-NOAA Jul 19, 2022
4fd18e3
Merge branch 'feature/gefs_v13_828_add_ws' into feature/gefs_v13_coupled
XianwuXue-NOAA Jul 19, 2022
71dd453
Merge branch 'feature/gefs_v13_822_add_atm_fcst' into feature/gefs_v1…
XianwuXue-NOAA Jul 19, 2022
c8319e2
Modify NET to pass value from rocoto
XianwuXue-NOAA Jul 19, 2022
44faea3
Remove the changes in .gitignore
XianwuXue-NOAA Jul 20, 2022
b5fa7ab
Improve to add GEFS workflow
XianwuXue-NOAA Jul 21, 2022
9865bf9
Improve the script to run fcst for GEFS
XianwuXue-NOAA Jul 21, 2022
182638d
Fix a typo
XianwuXue-NOAA Jul 22, 2022
29fa23e
Merge branch 'feature/gefs_v13_789_setupexp' into feature/gefs_v13_co…
XianwuXue-NOAA Jul 22, 2022
67dec68
Merge branch 'feature/gefs_v13_822_add_atm_fcst' into feature/gefs_v1…
XianwuXue-NOAA Jul 22, 2022
378ba8a
Merge branch 'feature/gefs_v13_828_add_ws' into feature/gefs_v13_coupled
XianwuXue-NOAA Jul 22, 2022
33a3b21
Merge branch 'feature/gefs_v13_824_init' into feature/gefs_v13_coupled
XianwuXue-NOAA Jul 22, 2022
6c90e0d
Improve scripts to run coupled GEFS workflow
XianwuXue-NOAA Jul 23, 2022
52f9199
Delete unused statement
XianwuXue-NOAA Jul 23, 2022
0b3552e
Copy ICs of ocean and ice to INPUT folder
XianwuXue-NOAA Jul 23, 2022
4fe05c3
Improve to use upp parm files for GEFS
XianwuXue-NOAA Jul 24, 2022
c7b2151
Improve to use the new path sfcsig and master
XianwuXue-NOAA Jul 27, 2022
bf015b2
Modify workflow to add gefs post to xml
XianwuXue-NOAA Jul 28, 2022
96d501d
Merge branch 'develop' into feature/gefs_v13_coupled
XianwuXue-NOAA Aug 2, 2022
13eaef1
Merge branch 'feature/gefs_v13_coupled' into feature/gefs_v13_coupled…
XianwuXue-NOAA Aug 2, 2022
834ac87
Add GEFS_ATMOS_PRDGEN scripts and parm files
XianwuXue-NOAA Aug 4, 2022
7feeeba
Modify scripts for g-w GEFSv13
XianwuXue-NOAA Aug 4, 2022
3e46549
Change BASH_SOURCE[1] to BASH_SOURCE
XianwuXue-NOAA Aug 4, 2022
e76fdd3
Modify for gefs_post
XianwuXue-NOAA Aug 4, 2022
f129868
Fix a minor bug
XianwuXue-NOAA Aug 4, 2022
075f2d0
Merge branch 'develop' into feature/gefs_v13_coupled
XianwuXue-NOAA Aug 4, 2022
84880d5
Merge branch 'feature/gefs_v13_coupled' into feature/gefs_v13_coupled…
XianwuXue-NOAA Aug 4, 2022
edfbb6e
Add ENSMEM in fcst.sh for fcst job
XianwuXue-NOAA Aug 5, 2022
673d476
Merge branch 'develop' into feature/gefs_v13_coupled
XianwuXue-NOAA Aug 26, 2022
cbfae7f
Merge branch 'feature/gefs_v13_coupled' into feature/gefs_v13_coupled…
XianwuXue-NOAA Aug 26, 2022
d522e4b
Merge branch 'develop' into feature/gefs_v13_coupled_post_us_ge
XianwuXue-NOAA Aug 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions env/HERA.env
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ elif [ $step = "fcst" ]; then
npe_fcst=$npe_fcst_gfs
npe_node_fcst=$npe_node_fcst_gfs
nth_fv3=$nth_fv3_gfs
elif [[ $CDUMP == "gefs" ]]; then
npe_fcst=$npe_fcst_gfs
npe_node_fcst=$npe_node_fcst_gfs
nth_fv3=$nth_fv3_gfs
fi

nth_max=$(($npe_node_max / $npe_node_fcst))
Expand Down
4 changes: 4 additions & 0 deletions env/ORION.env
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ elif [ $step = "fcst" ]; then
npe_fcst=$npe_fcst_gfs
npe_node_fcst=$npe_node_fcst_gfs
nth_fv3=$nth_fv3_gfs
elif [[ $CDUMP == "gefs" ]]; then
npe_fcst=$npe_fcst_gfs
npe_node_fcst=$npe_node_fcst_gfs
nth_fv3=$nth_fv3_gfs
fi

nth_max=$(($npe_node_max / $npe_node_fcst))
Expand Down
152 changes: 152 additions & 0 deletions jobs/JGEFS_ATMOS_PRDGEN
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
#! /usr/bin/env bash

source "$HOMEgfs/ush/preamble.sh"

echo "$(date -u) begin ${BASH_SOURCE}"

set -xa
if [[ ${STRICT:-NO} == "YES" ]]; then
# Turn on strict bash error checking
set -eu
fi
export PS4='$SECONDS + $(basename ${BASH_SOURCE})[$LINENO] '

#############################
# Source relevant config files
#############################
export EXPDIR=${EXPDIR:-$HOMEgfs/parm/config}
configs="base epos"
config_path=${EXPDIR:-$NWROOT/gfs.${gfs_ver}/parm/config}
for config in $configs; do
. $config_path/config.$config
status=$?
[[ $status -ne 0 ]] && exit $status
done

####################################
# Determine Job Output Name on System
####################################
export pid=${pid:-$$}
export job="gefs_prdgen"
export PBS_JOBID=${jobid:-${pid}}
export jobid=${jobid:-"$job.$PBS_JOBID"}
export pgmout="OUTPUT.${PBS_JOBID}"
export pgmerr=errfile

####################################
# Specify and create working directory
####################################
export DATA=${DATA:-${DATAROOT}/${jobid}}
mkdir -p $DATA
cd $DATA

######################################
# Set up compute resources
######################################
export total_tasks=${total_tasks:-4}
#export APRUN_MPMD=${gefsmpexec_mpmd:-"mpiexec -n $total_tasks cfp mpmd_cmdfile"}
export gefsmpexec_mpmd="srun -n $total_tasks /scratch2/NCEPDEV/ensemble/noscrub/common/soft/mpiserial.cd/mpiserial"
export APRUN_MPMD=${gefsmpexec_mpmd:-"mpiexec --cpu-bind core --configfile mpmd_cmdfile"}

# The following options are fore re-forecast
export save_pgrb2_p5=${save_pgrb2_p5:-NO}
export save_pgrb2_p25=${save_pgrb2_p25:-NO}

####################################
# Specify NET and RUN Name and model
####################################
export NET=${NET:-gefs}
export envir=${envir:-prod}
export RUN=${RUN:-gefs}

######################################
# SENDCOM - Copy Files From TMPDIR to $COMOUT
# SENDDBN - Issue DBNet Client Calls
# SENDECF - Flag Events on ECF
# VERBOSE - Specify Verbose Output
######################################

export SENDCOM=YES
export SENDCOM=${SENDCOM:-YES}
export SENDDBN=${SENDDBN:-YES}
export SENDECF=${SENDECF:-YES}
export VERBOSE=${VERBOSE:-YES}

######################################
# Set up the date information
######################################
export cycle=t${cyc}z
setpdy.sh
source PDY

if [ ${FORECAST_SEGMENT:-hr} = lr ]; then
export cyc=00
export cycle=t${cyc}z
fi

####################################
# Specify Execution Areas
####################################
export HOMEgefs=$HOMEgfs
export HOMEgefs=${HOMEgefs:-${PACKAGEROOT}/gefs.${gefs_ver}}
export EXECgefs=${EXECgefs:-$HOMEgefs/exec}
export USHgefs=${USHgefs:-$HOMEgefs/ush}
export FIXgefs=${FIXgefs:-$HOMEgefs/fix/fix_gefs}
export PARMgefs=${PARMgefs:-$HOMEgefs/parm}

##############################################
# Define COM directories
##############################################
#ver=${ver:-$(echo ${gefs_ver}|cut -c1-5)}
#export COMIN=${COMIN:-$(compath.py $envir/com/$NET/${ver})/${RUN}.${PDY}/$cyc}
#export COMOUT=${COMOUT:-$(compath.py -o $NET/${ver})/${RUN}.${PDY}/$cyc}


#############################
# Source relevant config files
#############################
#configs="gefs gefs_prdgen"
#config_path=$PARMgefs
#for config in $configs; do
# . $config_path/$config.parm
# export err=$?
# if [[ $err != 0 ]]; then
# echo "FATAL ERROR in ${.sh.file}: Error while loading parm file $config_path/$config.parm"
# exit $err
# fi
#done

#export COMINgfs=${COMINgfs:-$(compath.py $envir/com/gfs/${gfs_ver})/gfs.${PDY}/$cyc/atmos}

if [[ $cplchm = ".true." ]]; then
COMPONENT="chem"
fi
export COMPONENT=${COMPONENT:-atmos}

export COMIN="$ROTDIR/gefs.$PDY/$cyc/${RUNMEM}"
export COMOUT="$ROTDIR/gefs.$PDY/$cyc/${RUNMEM}"

echo "Environment before calling script"
env | sort

#############################################################
# Execute the script
source $HOMEgefs/scripts/exgefs_atmos_prdgen.sh
export err=$?
if [[ $err == 0 ]]; then
echo "$job completed normally!"
else
echo "FATAL ERROR in ${BASH_SOURCE}: $job failed!"
exit $err
fi
#############################################################

##############################
# Remove the Temporary working directory
##############################
cd $DATAROOT
if [ ${KEEPDATA:-NO} = NO ] ; then rm -rf $DATA ; fi

echo "$(date -u) end ${BASH_SOURCE}"

exit $err
2 changes: 1 addition & 1 deletion jobs/JGLOBAL_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ rCDUMP=$CDUMP
[[ $CDUMP = "gfs" ]] && export rCDUMP="gdas"

# Forecast length for GFS forecast
if [ $CDUMP = "gfs" ]; then
if [ $CDUMP = "gfs" ] || [ $CDUMP = "gefs" ]; then
export FHMAX=$FHMAX_GFS
export FHOUT=$FHOUT_GFS
export FHMAX_HF=$FHMAX_HF_GFS
Expand Down
9 changes: 7 additions & 2 deletions jobs/JGLOBAL_WAVE_INIT
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ export EXECwave=${EXECwave:-$HOMEgfs/exec}
if [ $RUN_ENVIR = "nco" ]; then
export ROTDIR=${COMROOT:?}/$NET/$envir
fi
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT}
if [[ $CDUMP == "gefs" ]]; then
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${RUNMEM}/$COMPONENT}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${RUNMEM}/$COMPONENT}
else
export COMIN=${COMIN:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT}
export COMOUT=${COMOUT:-${ROTDIR}/${CDUMP}.${PDY}/${cyc}/$COMPONENT}
fi
[[ ! -d $COMOUT ]] && mkdir -m 775 -p $COMOUT

if [ $SENDCOM = YES ]; then
Expand Down
77 changes: 56 additions & 21 deletions jobs/rocoto/coupled_ic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ status=$?
[[ $status -ne 0 ]] && exit $status
err=0

if [[ $CDUMP == "gefs" ]]; then
export RUNMEM=${RUNMEM:-"c00"}
fi
###############################################################
# Source relevant configs
configs="base coupled_ic wave"
Expand All @@ -37,10 +40,18 @@ status=$?
[[ $status -ne 0 ]] && exit $status

# Create ICSDIR if needed
[[ ! -d $ICSDIR/$CDATE ]] && mkdir -p $ICSDIR/$CDATE
[[ ! -d $ICSDIR/$CDATE/atmos ]] && mkdir -p $ICSDIR/$CDATE/atmos
[[ ! -d $ICSDIR/$CDATE/ocn ]] && mkdir -p $ICSDIR/$CDATE/ocn
[[ ! -d $ICSDIR/$CDATE/ice ]] && mkdir -p $ICSDIR/$CDATE/ice
if [[ $CDUMP == "gefs" ]]; then
ICSDIR=${ROTDIR}/${CDUMP}.${PDY}/${cyc}/${RUNMEM} #/atmos
[[ ! -d $ICSDIR ]] && mkdir -p $ICSDIR
[[ ! -d $ICSDIR/atmos ]] && mkdir -p $ICSDIR/atmos
[[ ! -d $ICSDIR/ocean ]] && mkdir -p $ICSDIR/ocean/INPUT
[[ ! -d $ICSDIR/ice ]] && mkdir -p $ICSDIR/ice/INPUT
else
[[ ! -d $ICSDIR/$CDATE ]] && mkdir -p $ICSDIR/$CDATE
[[ ! -d $ICSDIR/$CDATE/atmos ]] && mkdir -p $ICSDIR/$CDATE/atmos
[[ ! -d $ICSDIR/$CDATE/ocn ]] && mkdir -p $ICSDIR/$CDATE/ocn
[[ ! -d $ICSDIR/$CDATE/ice ]] && mkdir -p $ICSDIR/$CDATE/ice
fi

if [ $ICERES = '025' ]; then
ICERESdec="0.25"
Expand All @@ -50,7 +61,11 @@ if [ $ICERES = '050' ]; then
fi

# Setup ATM initial condition files
cp -r $BASE_CPLIC/$CPL_ATMIC/$CDATE/$CDUMP/* $ICSDIR/$CDATE/atmos/
if [[ $CDUMP == "gefs" ]]; then
cp -r $BASE_CPLIC/$CPL_ATMIC/$CDATE/gfs/$CASE/INPUT $ICSDIR/atmos/
else
cp -r $BASE_CPLIC/$CPL_ATMIC/$CDATE/$CDUMP/* $ICSDIR/$CDATE/atmos/
fi
rc=$?
if [[ $rc -ne 0 ]] ; then
echo "FATAL: Unable to copy $BASE_CPLIC/$CPL_ATMIC/$CDATE/$CDUMP/* to $ICSDIR/$CDATE/atmos/ (Error code $rc)"
Expand All @@ -59,26 +74,42 @@ err=$((err + rc))


# Setup Ocean IC files
cp -r $BASE_CPLIC/$CPL_OCNIC/$CDATE/ocn/$OCNRES/MOM*.nc $ICSDIR/$CDATE/ocn/
if [[ $CDUMP == "gefs" ]]; then
cp -r $BASE_CPLIC/$CPL_OCNIC/$CDATE/ocn/$OCNRES/MOM*.nc $ICSDIR/ocean/INPUT/
else
cp -r $BASE_CPLIC/$CPL_OCNIC/$CDATE/ocn/$OCNRES/MOM*.nc $ICSDIR/$CDATE/ocn/
fi
rc=$?
if [[ $rc -ne 0 ]] ; then
echo "FATAL: Unable to copy $BASE_CPLIC/$CPL_OCNIC/$CDATE/ocn/$OCNRES/MOM*.nc to $ICSDIR/$CDATE/ocn/ (Error code $rc)"
fi
err=$((err + rc))

#Setup Ice IC files
cp $BASE_CPLIC/$CPL_ICEIC/$CDATE/ice/$ICERES/cice5_model_${ICERESdec}.res_$CDATE.nc $ICSDIR/$CDATE/ice/cice_model_${ICERESdec}.res_$CDATE.nc
#Setup Ice IC files
if [[ $CDUMP == "gefs" ]]; then
cp $BASE_CPLIC/$CPL_ICEIC/$CDATE/ice/$ICERES/cice5_model_${ICERESdec}.res_$CDATE.nc $ICSDIR/ice/INPUT/cice_model_${ICERESdec}.res_$CDATE.nc
else
cp $BASE_CPLIC/$CPL_ICEIC/$CDATE/ice/$ICERES/cice5_model_${ICERESdec}.res_$CDATE.nc $ICSDIR/$CDATE/ice/cice_model_${ICERESdec}.res_$CDATE.nc
fi
rc=$?
if [[ $rc -ne 0 ]] ; then
echo "FATAL: Unable to copy $BASE_CPLIC/$CPL_ICEIC/$CDATE/ice/$ICERES/cice5_model_${ICERESdec}.res_$CDATE.nc to $ICSDIR/$CDATE/ice/cice_model_${ICERESdec}.res_$CDATE.nc (Error code $rc)"
fi
err=$((err + rc))

if [ $DO_WAVE = "YES" ]; then
[[ ! -d $ICSDIR/$CDATE/wav ]] && mkdir -p $ICSDIR/$CDATE/wav
if [[ $CDUMP == "gefs" ]]; then
[[ ! -d $ICSDIR/wave/restart ]] && mkdir -p $ICSDIR/wave/restart/
else
[[ ! -d $ICSDIR/$CDATE/wav ]] && mkdir -p $ICSDIR/$CDATE/wav
fi
for grdID in $waveGRD
do
cp $BASE_CPLIC/$CPL_WAVIC/$CDATE/wav/$grdID/*restart.$grdID $ICSDIR/$CDATE/wav/
if [[ $CDUMP == "gefs" ]]; then
cp $BASE_CPLIC/$CPL_WAVIC/$CDATE/wav/$grdID/*restart.$grdID $ICSDIR/wave/restart/
else
cp $BASE_CPLIC/$CPL_WAVIC/$CDATE/wav/$grdID/*restart.$grdID $ICSDIR/$CDATE/wav/
fi
rc=$?
if [[ $rc -ne 0 ]] ; then
echo "FATAL: Unable to copy $BASE_CPLIC/$CPL_WAVIC/$CDATE/wav/$grdID/*restart.$grdID to $ICSDIR/$CDATE/wav/ (Error code $rc)"
Expand All @@ -88,20 +119,24 @@ if [ $DO_WAVE = "YES" ]; then
fi

# Stage the FV3 initial conditions to ROTDIR
export OUTDIR="$ICSDIR/$CDATE/atmos/$CASE/INPUT"
COMOUT="$ROTDIR/$CDUMP.$PDY/$cyc/atmos"
[[ ! -d $COMOUT ]] && mkdir -p $COMOUT
cd $COMOUT || exit 99
rm -rf INPUT
$NLN $OUTDIR .
if [[ $CDUMP != "gefs" ]]; then
export OUTDIR="$ICSDIR/$CDATE/atmos/$CASE/INPUT"
COMOUT="$ROTDIR/$CDUMP.$PDY/$cyc/atmos"
[[ ! -d $COMOUT ]] && mkdir -p $COMOUT
cd $COMOUT || exit 99
rm -rf INPUT
$NLN $OUTDIR .
fi

#Stage the WW3 initial conditions to ROTDIR
if [ $DO_WAVE = "YES" ]; then
export OUTDIRw="$ICSDIR/$CDATE/wav"
COMOUTw="$ROTDIR/$CDUMP.$PDY/$cyc/wave/restart"
[[ ! -d $COMOUTw ]] && mkdir -p $COMOUTw
cd $COMOUTw || exit 99
$NLN $OUTDIRw/* .
if [[ $CDUMP != "gefs" ]]; then
export OUTDIRw="$ICSDIR/$CDATE/wav"
COMOUTw="$ROTDIR/$CDUMP.$PDY/$cyc/wave/restart"
[[ ! -d $COMOUTw ]] && mkdir -p $COMOUTw
cd $COMOUTw || exit 99
$NLN $OUTDIRw/* .
fi
fi

if [[ $err -ne 0 ]] ; then
Expand Down
8 changes: 7 additions & 1 deletion jobs/rocoto/fcst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ source "$HOMEgfs/ush/preamble.sh"
. $HOMEgfs/ush/load_fv3gfs_modules.sh
status=$?
[[ $status -ne 0 ]] && exit $status

if [[ $CDUMP == "gefs" ]]; then
export MEMBER=`echo ${RUNMEM:-"c00"}|cut -c2-3`
export ENSMEM=$MEMBER
if [[ $RUNMEM != "c00" ]]; then
export PREFIX_ATMINC="r"
fi
fi
###############################################################
# Execute the JJOB
$HOMEgfs/jobs/JGLOBAL_FORECAST
Expand Down
2 changes: 1 addition & 1 deletion jobs/rocoto/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export mm=$(echo $CDATE | cut -c5-6)
export dd=$(echo $CDATE | cut -c7-8)
export hh=${cyc:-$(echo $CDATE | cut -c9-10)}

export DATA=${DATA:-${DATAROOT}/init}
export DATA=${DATA:-${DATAROOT}/init_${jobid:?}}
export EXTRACT_DIR=${EXTRACT_DIR:-$ROTDIR}
export WORKDIR=${WORKDIR:-$DATA}
export OUTDIR=${OUTDIR:-$ROTDIR}
Expand Down
Loading