@@ -1617,6 +1617,36 @@ exit 1
16171617 if ( -e agcm_import_rst ) exit 0 # no need to regenerate IAU increment if already available
16181618 endif
16191619
1620+ # check for presence of jedi tarball holding IAU term
1621+ set fnymdb = $GcmBegDate
1622+ set fnhmsb = $GcmBegTime
1623+ set fhhb = `echo $fnhmsb | cut -c1-2`
1624+ set iamhere = `pwd`
1625+ set arstlst = `ls $FVHOME/fcst/*.jedi_agcmrst.${fnymdb}_${fhhb}z.tar`
1626+ if ( ! $status ) then
1627+ cd $FVWORK
1628+ /bin/mv $arstlst .
1629+ set rstlst = `ls *.jedi_agcmrst.${fnymdb}_${fhhb}z.tar`
1630+ set vexpid = `echo $rstlst | cut -d. -f1`
1631+ set this = `echo $rstlst | cut -d. -f3`
1632+ if (! -d agcmRSTinput_${this} ) mkdir agcmRSTinput_$this
1633+ cd agcmRSTinput_$this
1634+ tar xvf ../$rstlst
1635+ if ( "$EXPID" != "$vexpid" ) then
1636+ foreach fn ( `ls *agcm_internal_rst*` )
1637+ set sfx = `echo $fn | cut -d. -f2-`
1638+ /bin/mv $vexpid.$sfx $EXPID.$sfx
1639+ end
1640+ endif
1641+ # keep only (bin) restart files
1642+ /bin/mv *agcm_import_rst* $fcstage/stage/
1643+ cd -
1644+ /bin/rm -r agcmRSTinput_${this}
1645+ /bin/rm $rstlst
1646+ cd $iamhere
1647+ ln -sf $fcstage/stage/*agcm_import_rst.${fnymdb}_${fhhb}* agcm_import_rst
1648+ endif
1649+
16201650 set agcmfn = `echorc.x -template $EXPID $dtg iau_tendency_filename`
16211651 if ( -e $fcstage/stage/$agcmfn ) then
16221652 ln -sf $fcstage/stage/$agcmfn agcm_import_rst
@@ -3435,6 +3465,7 @@ endif
34353465 Sub CoupleAnaToGcm_( Viter_, Final_ )
34363466# ------------------------------
34373467 if ( $?ECHO___ ) set echo
3468+ if ( $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit 0
34383469
34393470 set updrst0 =
34403471 if ( "$MPIRUN_UPRST" != "/dev/null" ) then
0 commit comments