Changeset 4091 for dynamico_lmdz


Ignore:
Timestamp:
Nov 12, 2017, 10:48:55 PM (7 years ago)
Author:
dubos
Message:

aquaplanet scripts : minor fixes and improvements

Location:
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/example.sh

    r4079 r4091  
    4343    for YEAR in $(years 2 $NB_YEARS) ; do
    4444        YEARDIR=$(printf 'year%02d' $YEAR)
    45         ANNEEREF=$((1979 + YEAR))
     45#       ANNEEREF=$((1979 + YEAR))
     46        ANNEEREF=1980
    4647        $BASEDIR/prepare.sh next  $STORE0L "$STORE_ROOT/$PREV" $YEARDIR "$STORE_ROOT/$YEARDIR" $ANNEEREF
    4748        PREV=$YEARDIR
     
    8384    cp -fp $BASEDIR/*.sh $BASEDIR/*.xml $BASEDIR/*.def .
    8485    rm gcm.def # LMDZ-only, remove to avoid confusion
     86    rm -rf orig
     87    mkdir orig
     88    cp -p *.sh *.xml *.def orig/ # keep original config files in orig
    8589    ls -lrh
    8690    echo
     
    119123}
    120124
     125function cmd_diff()
     126{
     127    for x in orig/*.sh orig/*.xml orig/*.def ; do
     128        diff -u $x $(basename $x)
     129    done
     130}
     131
     132function cmd_patch()
     133{
     134    patch -p0 < $2
     135}
    121136
    122137BASEDIR=$(dirname ${BASH_SOURCE[0]})
     
    126141echo "Script base dir : $BASEDIR"
    127142echo "Run from : $(fullpath $PWD)"
    128 echo "Usage : $0 [init_aqua|init_betaclim|create|submit]"
    129 cmd_$1
     143echo "Usage : $0 [init_aqua|init_betaclim|diff|create|submit]"
     144cmd_$1 $*
  • dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/prepare.sh

    r4079 r4091  
    245245
    246246TYPE=$1
    247 readargs_$TYPE $*
     247readargs_$TYPE $* || exit
    248248
    249249# avoid destroying xml and def files in case of mistake
Note: See TracChangeset for help on using the changeset viewer.