Ignore:
Timestamp:
Oct 23, 2017, 5:53:34 PM (7 years ago)
Author:
dubos
Message:

aquaplanet : common output grid definitions for LMDZ and DYNAMICO + CE0L in server mode + output flux diagnostics monthly

File:
1 edited

Legend:

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

    r4067 r4079  
    6666
    6767function sed_ce0l() {
    68     def USING_SERVER false
     68    def USING_SERVER true
    6969    def CE0L yes
    7070    def READ_START no
     
    102102cd ${MYDIR}
    103103rm -rf gcm.log *.nc xios_*.err xios_*.out gcm.log logs
    104 ln -s ../FILES_LMDZ/*.nc .
     104
     105symlink() { if [ -e \$1 ] ; then ln -s \$1 \$2 ; fi ; }
     106
     107for x in ../FILES_LMDZ/*.nc ; do ln -s \$x . ; done
    105108
    106109cat <<END  > killme.sh
     
    116119}
    117120
     121function prologue_ce0l() {
     122echo
     123}
     124
    118125function prologue_first() {
    119126cat <<EOF
    120 ln -s store0/limit.nc store0/climoz_LMDZ.nc store0/startphy.nc .
     127symlink store0/limit.nc .
     128symlink store0/climoz_LMDZ.nc .
     129symlink store0/startphy.nc .
    121130EOF
    122131}
     
    124133function prologue_next() {
    125134cat <<EOF
    126 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
     135symlink store0/limit.nc .
     136symlink store0/climoz_LMDZ.nc .
     137symlink store_prev/restartphy.nc startphy.nc
     138symlink store_prev/restart.nc start.nc
    129139EOF
    130140}
     
    166176
    167177function batch_X64_CURIE_ce0l() {
    168 cat <<EOF
    169 #!/bin/bash
    170 ## Request name
    171 #MSUB -r ${EXPERIMENT}_ce0l_mpi
    172 #MSUB -q standard
    173 #MSUB -A gen7548
    174 #MSUB -x
    175 ## Number of tasks (=MPI processes) to use
    176 #MSUB -n $NB_MPI_CE0L
    177 ## Elapsed time limit in seconds
    178 #MSUB -T 600
    179 ## Quality of Service required (long [3 days], normal [1 day], test [30 min])
    180 #MSUB -Q normal
    181 
    182 $( prologue_all )
    183 date > gcm.log
    184 export OMP_NUM_THREADS=1
    185 ccc_mprun $ICOSA_LMDZ >> gcm.log
    186 date >> gcm.log
    187 $( epilogue_ce0l )
    188 $( epilogue_all )
    189 EOF
     178batch_X64_CURIE ce0l $WALLTIME_CE0L
    190179}
    191180
    192181function batch_X64_CURIE_first() {
    193 batch_X64_CURIE first
     182batch_X64_CURIE first $WALLTIME_JOB
    194183}
    195184
    196185function batch_X64_CURIE_next() {
    197 batch_X64_CURIE next
    198 }
    199 
    200 function batch_X64_CURIE() { # $1 = first or next
     186batch_X64_CURIE next $WALLTIME_JOB
     187}
     188
     189function batch_X64_CURIE() { # $1 = first or next $2 = walltime
    201190NB_MPI_TOTAL=$(( $NB_MPI_DYNAMICO + $NB_MPI_XIOS ))
    202191cat <<EOF
     
    210199#MSUB -n $NB_MPI_TOTAL
    211200## Elapsed time limit in seconds
    212 #MSUB -T $JOB_WALLTIME
     201#MSUB -T $2
    213202## Quality of Service required (long [3 days], normal [1 day], test [30 min])
    214203#MSUB -Q normal
Note: See TracChangeset for help on using the changeset viewer.