Changeset 4067 for dynamico_lmdz
- Timestamp:
- Oct 12, 2017, 12:05:32 AM (7 years ago)
- Location:
- dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/README
r4042 r4067 22 22 IFLAG_PHYS : 103 if CE0L, 1 otherwise 23 23 READ_START : no if CE0L, yes otherwise 24 25 For 'CE0L' XIOS is run in 'attached' mode. In server mode, xios_server.exe would hang after the dynamico_lmdz.exe MPI processes have aborted. 26 For 'START' and 'NEXT', XIOS is run in server mode for flexibility. Especially it allows to restart with a different number of processors, which is not possible in attached mode. 24 ANNEEREF : ANNEEREF (see below) 25 For 'CE0L' XIOS is run in 'attached' mode. For 'START' and 'NEXT', XIOS is run in server mode for flexibility. Especially it allows to restart with a different number of processors, which is not possible in attached mode. 27 26 28 27 Notice that the definitions of start.def have the highest priority since start.def is the last *.def file included in run.def . … … 40 39 41 40 2 - In order to create a run of type 'ce0l' : 42 > ./prepare ce0l MYDIR0 STORE0 41 > ./prepare ce0l MYDIR0 STORE0 ANNEEREF 43 42 This will create STORE0 and MYDIR0 if necessary and populate MYDIR0 with .xml and .def files, as well as a batch job 'job.sh' to be submitted (on CURIE) as : 44 43 ccc_msub job.sh . … … 46 45 47 46 3 - In order to create a one-year run of type 'first' 48 > ./prepare first STORE0 MYDIR1 STORE1 47 > ./prepare first STORE0 MYDIR1 STORE1 ANNEEREF 49 48 This will create STORE1 and MYDIR1 if necessary and populate MYDIR1 with .xml and .def files, as well as a batch job 'job.sh'. This batch job copies input files from STORE0. Submit MYDIR1/job.sh . After successful completion, STORE1 contains all *.nc files produced by the run, especially start.nc 50 49 51 50 4 - In order to create a one-year run of type NEXT, type 52 ./prepare first STORE0 STOREPREV MYDIR2 STORE2 51 ./prepare first STORE0 STOREPREV MYDIR2 STORE2 ANNEEREF 53 52 This will create STORE2 and MYDIR2 if necessary and populate MYDIR2 with .xml and .def files, as well as a batch job 'job.sh'. This batch job copies input files from STORE0 and STOREPREV. Submit MYDIR2/job.sh . 54 53 -
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/config.def
r3940 r4067 101 101 version_ocean=nemo 102 102 #avec ou sans orchidee (D:n) 103 VEGET= n103 VEGET=KEY_VEGET 104 104 #type_run=AMIP, ENSP, clim (D:AMIP) 105 105 type_run=CLIM … … 166 166 # 1: read a single ozone climatology that will be used day and night 167 167 # 2: read two ozone climatologies, the average day and night climatology and the daylight climatology 168 read_climoz= -1168 read_climoz=READ_CLIMOZ 169 169 # 170 170 # Parametres simulateur COSP (CFMIP Observational Simulator Package) … … 203 203 ok_all_xml=y 204 204 #qsol0=100. 205 VEGET=bucket206 205 flag_aerosol=0 207 206 ok_ade=.false. -
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/example.sh
r4048 r4067 16 16 { 17 17 for ((i="$1";i<="$2";i++)) ; do 18 echo $i 19 done 20 } 21 22 function yeardirs() 23 { 24 for ((i="$1";i<="$2";i++)) ; do 18 25 echo $(printf 'year%02d' $i) 19 26 done … … 26 33 ls -l $PWD/storedir || (echo "$PWD/storedir is missing, please create it and retry." ; exit -1) || exit 27 34 STORE_ROOT=$( fullpath $PWD/storedir ) 28 YEAR S=$(years 1 $NB_YEARS)29 for DIR in ce0l $YEAR S ; do35 YEARDIRS=$(yeardirs 1 $NB_YEARS) 36 for DIR in ce0l $YEARDIRS ; do 30 37 rm -rf $DIR $STORE_ROOT/$DIR 31 38 done 32 39 STORE0L="$STORE_ROOT/ce0l" 33 $BASEDIR/prepare.sh ce0l ce0l "$STORE0L" 34 $BASEDIR/prepare.sh first $STORE0L year01 "$STORE_ROOT/year01" 40 $BASEDIR/prepare.sh ce0l ce0l "$STORE0L" 1980 41 $BASEDIR/prepare.sh first $STORE0L year01 "$STORE_ROOT/year01" 1980 35 42 PREV=year01 36 43 for YEAR in $(years 2 $NB_YEARS) ; do 37 $BASEDIR/prepare.sh next $STORE0L "$STORE_ROOT/$PREV" $YEAR "$STORE_ROOT/$YEAR" 38 PREV=$YEAR 44 YEARDIR=$(printf 'year%02d' $YEAR) 45 ANNEEREF=$((1979 + YEAR)) 46 $BASEDIR/prepare.sh next $STORE0L "$STORE_ROOT/$PREV" $YEARDIR "$STORE_ROOT/$YEARDIR" $ANNEEREF 47 PREV=$YEARDIR 39 48 done 40 49 } … … 55 64 DEP="" 56 65 submit_$ARCH ce0l 57 for YEAR in $(years 1 $NB_YEARS) ; do58 submit_$ARCH $YEAR $DEP66 for YEARDIR in $(yeardirs 1 $NB_YEARS) ; do 67 submit_$ARCH $YEARDIR $DEP 59 68 done 60 69 } 61 70 62 function cmd_init()71 function init_all() 63 72 { 64 cp -fp $BASEDIR/*.sh $BASEDIR/*.xml $BASEDIR/*.def . 65 cat > config.sh <<EOF 73 cat >> config.sh <<EOF 66 74 ARCH=X64_CURIE 67 75 BASEDIR=$BASEDIR 68 76 ESM_ROOT=$ESM_ROOT 69 NB_YEARS= 1077 NB_YEARS=2 70 78 NB_MPI_DYNAMICO=160 71 79 NB_MPI_XIOS=16 … … 73 81 JOB_WALLTIME=7200 74 82 EOF 83 cp -fp $BASEDIR/*.sh $BASEDIR/*.xml $BASEDIR/*.def . 84 rm gcm.def # LMDZ-only, remove to avoid confusion 75 85 ls -lrh 76 86 echo … … 81 91 } 82 92 83 function cmd_ ()93 function cmd_init_aqua() 84 94 { 85 echo 95 cat > config.sh <<EOF 96 READ_CLIMOZ=-1 97 VEGET=n 98 SOLARLONG0=1000. 99 ETAT0=held_suarez 100 IFLAG_PHYS0=103 101 EXPERIMENT=aqua 102 EOF 103 init_all 86 104 } 105 106 function cmd_init_betaclim() 107 { 108 cat > config.sh <<EOF 109 READ_CLIMOZ=2 110 VEGET=betaclim 111 SOLARLONG0=-9999.999 112 ETAT0=database 113 IFLAG_PHYS0=1 114 EXPERIMENT=betaclim 115 EOF 116 init_all 117 echo "Decompressing FILES_LMDZ.tar.bz2" 118 tar xjf /ccc/store/cont003/gen7548/dubosth/Lluis/FILES_LMDZ.tar.bz2 119 } 120 87 121 88 122 BASEDIR=$(dirname ${BASH_SOURCE[0]}) … … 92 126 echo "Script base dir : $BASEDIR" 93 127 echo "Run from : $(fullpath $PWD)" 94 echo "Usage : $0 [init |create|submit]"128 echo "Usage : $0 [init_aqua|init_betaclim|create|submit]" 95 129 cmd_$1 -
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/prepare.sh
r4066 r4067 11 11 MYDIR=$(fullpath $2) 12 12 MYSTORE=$(fullpath $3) 13 ANNEEREF=$4 13 14 mkdir -p $MYDIR 14 15 mkdir -p $MYSTORE … … 21 22 MYDIR=$(fullpath $3) 22 23 MYSTORE=$(fullpath $4) 24 ANNEEREF=$5 23 25 mkdir -p $MYDIR 24 26 mkdir -p $MYSTORE … … 32 34 MYDIR=$(fullpath $4) 33 35 MYSTORE=$(fullpath $5) 36 ANNEEREF=$6 34 37 mkdir -p $MYDIR 35 38 mkdir -p $MYSTORE … … 66 69 def CE0L yes 67 70 def READ_START no 68 def IFLAG_PHYS 10369 def ETAT0 held_suarez71 def IFLAG_PHYS $IFLAG_PHYS0 72 def ETAT0 $ETAT0 70 73 } 71 74 … … 75 78 def READ_START yes 76 79 def IFLAG_PHYS 1 77 def ETAT0 held_suarez80 def ETAT0 $ETAT0 78 81 } 79 82 … … 86 89 } 87 90 91 function sed_all() { 92 def READ_CLIMOZ $READ_CLIMOZ 93 def KEY_VEGET $VEGET 94 def SOLARLONG0 $SOLARLONG0 95 def ANNEEREF $ANNEEREF 96 } 97 88 98 #------------ Batch jobs : machine-independent prologues and epilogues -------------- 89 99 … … 92 102 cd ${MYDIR} 93 103 rm -rf gcm.log *.nc xios_*.err xios_*.out gcm.log logs 104 ln -s ../FILES_LMDZ/*.nc . 94 105 95 106 cat <<END > killme.sh … … 107 118 function prologue_first() { 108 119 cat <<EOF 109 cp -f store0/limit.nc store0/startphy.nc .120 ln -s store0/limit.nc store0/climoz_LMDZ.nc store0/startphy.nc . 110 121 EOF 111 122 } … … 113 124 function prologue_next() { 114 125 cat <<EOF 115 cp -f store0/limit.nc .116 cp -fstore_prev/restartphy.nc startphy.nc117 cp -fstore_prev/restart.nc start.nc126 ln -s store0/limit.nc store0/climoz_LMDZ.nc . 127 ln -s store_prev/restartphy.nc startphy.nc 128 ln -s store_prev/restart.nc start.nc 118 129 EOF 119 130 } … … 122 133 cat <<EOF 123 134 # save useful files 124 mv limit.nc startphy.nc store/135 mv limit.nc startphy.nc climoz_LMDZ.nc store/ 125 136 EOF 126 137 } … … 128 139 function epilogue_first(){ 129 140 cat <<EOF 130 # remove input files to avoid storing them a few lines below131 rm -f limit.nc startphy.nc132 141 # save useful files 133 142 mv restartphy.nc restart.nc store/ … … 137 146 function epilogue_next(){ 138 147 cat <<EOF 139 # remove input files to avoid storing them a few lines below140 rm -f limit.nc startphy.nc start.nc141 148 # save useful files 142 149 mv restartphy.nc restart.nc store/ … … 151 158 tar czf logs.tgz logs 152 159 mv hist*.nc logs.tgz store/ 153 # cleanup 160 # cleanup input files 154 161 rm -f *.nc 155 162 EOF … … 162 169 #!/bin/bash 163 170 ## Request name 164 #MSUB -r aqua_ce0l_mpi171 #MSUB -r ${EXPERIMENT}_ce0l_mpi 165 172 #MSUB -q standard 166 173 #MSUB -A gen7548 … … 196 203 #!/bin/bash 197 204 ## Request name 198 #MSUB -r aqua_$1_mpi205 #MSUB -r ${EXPERIMENT}_$1_mpi 199 206 #MSUB -q standard 200 207 #MSUB -A gen7548 … … 256 263 MYSED=$(mktemp) 257 264 sed_$TYPE > $MYSED 258 cat $MYSED 265 sed_all >> $MYSED 266 #cat $MYSED 259 267 for FILE in *.def *.xml ; do 260 268 sed -f $MYSED $FILE > $MYDIR/$FILE … … 269 277 #ls -l $MYDIR 270 278 grep using_server iodef.xml 271 for KEY in read_start iflag_phys etat0 run_length; do272 grep $KEY *.def279 for KEY in create_etat0_limit read_start etat0 anneeref iflag_phys read_climoz VEGET solarlong0 ; do 280 grep "\b$KEY\b" *.def | grep -v '#' # match whole words : \b means 'word boundary' 273 281 done -
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/run.def
r3978 r4067 17 17 dayref=1 18 18 ## Annee de l'etat initial ( avec 4 chiffres ) 19 anneeref= 198019 anneeref=ANNEEREF 20 20 21 21 # Deactivate annual cycle 22 solarlong0 = 1000.22 solarlong0 = SOLARLONG0 23 23 24 24 ## Remise a zero de la date initiale -
dynamico_lmdz/aquaplanet/CMIP5a/RUN_AQUAPLANET_DYNAMICO_LMDZ5/run_icosa.def
r4039 r4067 32 32 33 33 # run length : real (default=dt*itaumax) 34 #run_length=86400035 34 run_length=31104000 36 35 … … 71 70 niterdivgrad=2 72 71 72 iflag_sponge = 1 73 73 74 # -------------------------------- Physics ------------------------------------- 74 75
Note: See TracChangeset
for help on using the changeset viewer.