- Timestamp:
- Nov 12, 2017, 10:48:55 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/example.sh
r4079 r4091 43 43 for YEAR in $(years 2 $NB_YEARS) ; do 44 44 YEARDIR=$(printf 'year%02d' $YEAR) 45 ANNEEREF=$((1979 + YEAR)) 45 # ANNEEREF=$((1979 + YEAR)) 46 ANNEEREF=1980 46 47 $BASEDIR/prepare.sh next $STORE0L "$STORE_ROOT/$PREV" $YEARDIR "$STORE_ROOT/$YEARDIR" $ANNEEREF 47 48 PREV=$YEARDIR … … 83 84 cp -fp $BASEDIR/*.sh $BASEDIR/*.xml $BASEDIR/*.def . 84 85 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 85 89 ls -lrh 86 90 echo … … 119 123 } 120 124 125 function cmd_diff() 126 { 127 for x in orig/*.sh orig/*.xml orig/*.def ; do 128 diff -u $x $(basename $x) 129 done 130 } 131 132 function cmd_patch() 133 { 134 patch -p0 < $2 135 } 121 136 122 137 BASEDIR=$(dirname ${BASH_SOURCE[0]}) … … 126 141 echo "Script base dir : $BASEDIR" 127 142 echo "Run from : $(fullpath $PWD)" 128 echo "Usage : $0 [init_aqua|init_betaclim| create|submit]"129 cmd_$1 143 echo "Usage : $0 [init_aqua|init_betaclim|diff|create|submit]" 144 cmd_$1 $*
Note: See TracChangeset
for help on using the changeset viewer.