From d983c4fe2f8b4aa644d71f5bf640aaeaf9d7c6ce Mon Sep 17 00:00:00 2001 From: Cory Martin Date: Wed, 30 Aug 2023 15:12:27 -0400 Subject: [PATCH] hotfix for the aerosol 3dvar test (#593) --- test/aero/global-workflow/jjob_var_init.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/aero/global-workflow/jjob_var_init.sh b/test/aero/global-workflow/jjob_var_init.sh index 36276ce35..5933eef4a 100755 --- a/test/aero/global-workflow/jjob_var_init.sh +++ b/test/aero/global-workflow/jjob_var_init.sh @@ -75,13 +75,16 @@ for file in $flist; do done -# Link model bacgkround on tiles +# Copy model bacgkround on tiles dpath=gdas.$gPDY/$gcyc/model_data/atmos COM_ATMOS_RESTART_PREV_DIRNAME=$(dirname $COM_ATMOS_RESTART_PREV) -mkdir -p $COM_ATMOS_RESTART_PREV_DIRNAME -flist="restart" +if [ -d $COM_ATMOS_RESTART_PREV_DIRNAME/restart ]; then + rm -rf $COM_ATMOS_RESTART_PREV_DIRNAME/restart +fi +mkdir -p $COM_ATMOS_RESTART_PREV_DIRNAME/restart +flist="restart/*" for file in $flist; do - ln -fs $GDASAPP_TESTDATA/lowres/$dpath/$file $COM_ATMOS_RESTART_PREV_DIRNAME/ + cp $GDASAPP_TESTDATA/lowres/$dpath/$file $COM_ATMOS_RESTART_PREV_DIRNAME/restart/ done