|
154 | 154 | if ( !($?RADCOR) ) setenv RADCOR 0 |
155 | 155 | if ( !($?SHORTFCST) ) setenv SHORTFCST 0 |
156 | 156 | if ( !($?SKIPANA) ) setenv SKIPANA 0 |
| 157 | + if ( !($?SKIPGSI) ) setenv SKIPGSI 0 |
157 | 158 | if ( !($?SKIP_PSAS) ) setenv SKIP_PSAS 0 |
158 | 159 | if ( !($?SPLITEXE) ) setenv SPLITEXE 0 |
159 | 160 | if ( !($?STRICT) ) setenv STRICT 0 |
@@ -1610,11 +1611,42 @@ exit 1 |
1610 | 1611 | Sub CreateIAUincrement4Fcst_() |
1611 | 1612 | # ------------------------------------- |
1612 | 1613 | if ( $?ECHO___ ) set echo |
| 1614 | + if ( $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit 0 |
1613 | 1615 |
|
1614 | 1616 | if ( ! $DO4DIAU ) then |
1615 | 1617 | if ( -e agcm_import_rst ) exit 0 # no need to regenerate IAU increment if already available |
1616 | 1618 | endif |
1617 | 1619 |
|
| 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 | + |
1618 | 1650 | set agcmfn = `echorc.x -template $EXPID $dtg iau_tendency_filename` |
1619 | 1651 | if ( -e $fcstage/stage/$agcmfn ) then |
1620 | 1652 | ln -sf $fcstage/stage/$agcmfn agcm_import_rst |
@@ -2526,6 +2558,8 @@ exit 1 |
2526 | 2558 | if ( $?ECHO___ ) set echo |
2527 | 2559 | set qsub_acquire = 0 |
2528 | 2560 |
|
| 2561 | +# if ( $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit 0 |
| 2562 | + |
2529 | 2563 | set ecode = 0 |
2530 | 2564 | set acq_status = 0 |
2531 | 2565 | set acq_status2 = 0 |
@@ -2879,6 +2913,8 @@ exit 1 |
2879 | 2913 | # ------------------------- |
2880 | 2914 | if ( $?ECHO___ ) set echo |
2881 | 2915 |
|
| 2916 | + if ( $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit 0 |
| 2917 | + |
2882 | 2918 | # Get info about pre-qc files to be combined for QC |
2883 | 2919 | # ------------------------------------------------------ |
2884 | 2920 |
|
@@ -2974,6 +3010,7 @@ endif |
2974 | 3010 |
|
2975 | 3011 | if ( ! $PREPQC ) exit 0 |
2976 | 3012 | if ( $SKIPANA ) exit 0 |
| 3013 | + if ( $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit 0 |
2977 | 3014 |
|
2978 | 3015 | # Combine pre-qc files... |
2979 | 3016 | # ------------------------ |
@@ -3139,6 +3176,7 @@ endif |
3139 | 3176 | Sub AnalysisRun_( Viter_, Final_ ) |
3140 | 3177 | # ---------------------------------- |
3141 | 3178 | if ( $?ECHO___ ) set echo |
| 3179 | + if ( $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit 0 |
3142 | 3180 |
|
3143 | 3181 | if ( $DO4DVAR && $Final_ ) exit 0 |
3144 | 3182 |
|
@@ -3264,15 +3302,18 @@ endif |
3264 | 3302 | # |
3265 | 3303 |
|
3266 | 3304 | if ( ! -d $FVHOME/run/jedi ) exit (0) |
| 3305 | + if ( -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit (0) # only run from second cycle of experiment onwards |
3267 | 3306 |
|
3268 | 3307 | @ idummy = $VAROFFSET * 60 |
3269 | 3308 | set ana_datetime = ( `tick $gcm_nymd0 $gcm_nhms0 $idummy` ) |
3270 | 3309 |
|
3271 | 3310 | set this_hh0 = `echo $gcm_nhms0 | cut -c1-2` |
3272 | 3311 | set this_hha = `echo $ana_datetime[2] | cut -c1-2` |
3273 | 3312 |
|
3274 | | - set this_log = $EXPID.ana_jo.log.${ana_datetime[1]}_${this_hha}z.txt |
3275 | | - obimp_summary.pl -rc $FVROOT/etc/odsstats4jedi.rc -type diag -josummary -o $this_log $ana_datetime[1] $ana_datetime[2] |
| 3313 | + if ( ! $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) then |
| 3314 | + set this_log = $EXPID.ana_jo.log.${ana_datetime[1]}_${this_hha}z.txt |
| 3315 | + obimp_summary.pl -rc $FVROOT/etc/odsstats4jedi.rc -type diag -josummary -o $this_log $ana_datetime[1] $ana_datetime[2] |
| 3316 | + endif |
3276 | 3317 |
|
3277 | 3318 |
|
3278 | 3319 | jedi_driver.csh $gcm_nymd0 $gcm_nhms0 $ana_datetime[1] $ana_datetime[2] |& tee -a $FVWORK/$EXPID.jedi_drv.log.${gcm_nymd0}_${this_hh0}z.txt |
@@ -3424,6 +3465,7 @@ endif |
3424 | 3465 | Sub CoupleAnaToGcm_( Viter_, Final_ ) |
3425 | 3466 | # ------------------------------ |
3426 | 3467 | if ( $?ECHO___ ) set echo |
| 3468 | + if ( $SKIPGSI && ! -e $FVHOME/run/AGCM.BOOTSTRAP.rc.tmpl ) exit 0 |
3427 | 3469 |
|
3428 | 3470 | set updrst0 = |
3429 | 3471 | if ( "$MPIRUN_UPRST" != "/dev/null" ) then |
@@ -6047,6 +6089,10 @@ endif |
6047 | 6089 | /bin/mv $momoutdir/MOM.res_${fn}.nc $FVHOME/recycle/hold/$EXPID.mom${fn}_rst.${momtag}.nc4 |
6048 | 6090 | end |
6049 | 6091 | endif |
| 6092 | + set lstbkglfo = `ls $FVWORK/$EXPID.bkg.lfo*.$NCSUFFIX` |
| 6093 | + if ( ${%lstbkglfo} ) then |
| 6094 | + tar cvf $FVWORK/$EXPID.bkglforst.${rtag}.tar $EXPID.bkg.lfo*.$NCSUFFIX |
| 6095 | + endif |
6050 | 6096 | cd $FVHOME/recycle/hold |
6051 | 6097 | tar cvf $FVWORK/$EXPID.rst.${rtag}.tar $EXPID.* |
6052 | 6098 | /bin/mv $FVWORK/$EXPID.xinc*$NCSUFFIX . |
@@ -6082,9 +6128,8 @@ endif |
6082 | 6128 | #------------------------------------ |
6083 | 6129 |
|
6084 | 6130 | if ( $LDAS_ANA ) then |
6085 | | - mkdir -p $FVHOME/recycle/holdpredout |
6086 | | - /bin/mv -f $FVWORK/*lfo_Nx+-* $FVHOME/recycle/holdpredout/. |
6087 | | - /bin/cp $FVHOME/recycle/holdpredout/*lfo_Nx+-* $LDHOME/input/met_forcing/. |
| 6131 | + /bin/rm -f $FVHOME/recycle/holdpredout/*lfo* |
| 6132 | + /bin/cp $FVWORK/*bkg.lfo*.nc4 $FVHOME/recycle/holdpredout/. |
6088 | 6133 | endif |
6089 | 6134 |
|
6090 | 6135 | exit 0 |
|
0 commit comments