Skip to content

Commit

Permalink
Merge branch 'develop' into feature/aero_3dvar_test
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryMartin-NOAA committed Aug 25, 2023
2 parents 1c99cf5 + cc68184 commit 07fef95
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/atm/global-workflow/jjob_var_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,30 @@ for file in $flist; do
done


# Link member atmospheric background on tiles and atmf006
dpath=enkfgdas.$gPDY/$gcyc
for imem in $(seq 1 $NMEM_ENS); do
memchar="mem"$(printf %03i $imem)

MEMDIR=${memchar} RUN=${RUN} YMD=${gPDY} HH=${gcyc} generate_com -x \
COM_ATMOS_HISTORY_PREV_ENS:COM_ATMOS_HISTORY_TMPL \
COM_ATMOS_RESTART_PREV_ENS:COM_ATMOS_RESTART_TMPL
COM_ATMOS_RESTART_PREV_DIRNAME_ENS=$(dirname $COM_ATMOS_RESTART_PREV_ENS)

source=$GDASAPP_TESTDATA/lowres/$dpath/$memchar/model_data/atmos
target=$COM_ATMOS_RESTART_PREV_DIRNAME_ENS
mkdir -p $target
rm -rf $target/restart
ln -fs $source/restart $target/

source=$GDASAPP_TESTDATA/lowres/$dpath/$memchar/model_data/atmos/history
target=$COM_ATMOS_HISTORY_PREV_ENS
mkdir -p $target
rm -rf $target/enkfgdas.t${gcyc}z.atmf006.nc
ln -fs $source/enkfgdas.t${gcyc}z.atmf006.nc $target/
done


# Execute j-job
if [ $machine = 'HERA' ]; then
sbatch --ntasks=1 --account=$ACCOUNT --qos=batch --time=00:10:00 --export=ALL --wait ${HOMEgfs}/jobs/JGLOBAL_ATM_ANALYSIS_INITIALIZE
Expand Down

0 comments on commit 07fef95

Please sign in to comment.