source: trunk/libIGCM/AA_job @ 386

Last change on this file since 386 was 386, checked in by mafoipsl, 13 years ago

Add ulam header to facilitate post-processing on ulam directly.

  • Property licence set to
    The following licence information concerns ONLY the libIGCM tools
    ==================================================================

    Copyright © Centre National de la Recherche Scientifique CNRS
    Commissariat à l'Énergie Atomique CEA

    libIGCM : Library for Portable Models Computation of IGCM Group.

    IGCM Group is the french IPSL Global Climate Model Group.

    This library is a set of shell scripts and functions whose purpose is
    the management of the initialization, the launch, the transfer of
    output files, the post-processing and the monitoring of datas produce
    by any numerical program on any plateforme.

    This software is governed by the CeCILL license under French law and
    abiding by the rules of distribution of free software. You can use,
    modify and/ or redistribute the software under the terms of the CeCILL
    license as circulated by CEA, CNRS and INRIA at the following URL
    "http://www.cecill.info".

    As a counterpart to the access to the source code and rights to copy,
    modify and redistribute granted by the license, users are provided only
    with a limited warranty and the software's author, the holder of the
    economic rights, and the successive licensors have only limited
    liability.

    In this respect, the user's attention is drawn to the risks associated
    with loading, using, modifying and/or developing or reproducing the
    software by the user in light of its specific status of free software,
    that may mean that it is complicated to manipulate, and that also
    therefore means that it is reserved for developers and experienced
    professionals having in-depth computer knowledge. Users are therefore
    encouraged to load and test the software's suitability as regards their
    requirements in conditions enabling the security of their systems and/or
    data to be ensured and, more generally, to use and operate it in the
    same conditions as regards security.

    The fact that you are presently reading this means that you have had
    knowledge of the CeCILL license and that you accept its terms.
  • Property svn:keywords set to Revision Author Date
File size: 22.7 KB
Line 
1#-Q- cesium #!/bin/ksh
2#-Q- cesium ###################################################
3#-Q- cesium ## CESIUM   CEA                                  ##
4#-Q- cesium ## Usefull for postprocessing. AA_job not tested ##
5#-Q- cesium ###################################################
6#-Q- cesium #MSUB -r ::Jobname::    # Nom du job               
7#-Q- cesium #MSUB -N 1              # Reservation du noeud
8#-Q- cesium #MSUB -n 1              # Reservation du processus
9#-Q- cesium #MSUB -T 86400          # Limite de temps elapsed du job
10#-Q- cesium #MSUB -E "-j o"
11#-Q- cesium #MSUB -E "-S /bin/ksh"
12#-Q- platine #!/usr/bin/ksh
13#-Q- platine ##################
14#-Q- platine ## PLATINE   CEA ##
15#-Q- platine ##################
16#-Q- platine #BSUB -J ::Jobname::       # nom de la requete
17#-Q- platine #BSUB -N                   # message a la fin du job
18#-Q- platine #BSUB -o Script_Output_::Jobname::.000001    # nom du fichier de sortie
19#-Q- platine #BSUB -n ::JobNumProcTot::             # reservation des processeurs pour le job
20#-Q- platine #BSUB -W 1:00           # Limite temps
21#-Q- platine BATCH_NUM_PROC_TOT=$SLURM_NPROCS
22#-Q- titane #!/usr/bin/ksh
23#-Q- titane ##################
24#-Q- titane ## TITANE   CEA ##
25#-Q- titane ##################
26#-Q- titane #MSUB -r ::Jobname::       # nom de la requete
27#-Q- titane #MSUB -o Script_Output_::Jobname::.000001    # nom du fichier de sortie
28#-Q- titane #MSUB -n ::JobNumProcTot::             # reservation des processeurs pour le job
29#-Q- titane #MSUB -T 86400           # Limite temps (en secondes)
30#-Q- titane #MSUB -p gen2211
31#-Q- titane BATCH_NUM_PROC_TOT=$BRIDGE_MSUB_NPROC
32#-Q- sx8brodie #######################
33#-Q- sx8brodie ## SX8BRODIE   IDRIS ##
34#-Q- sx8brodie #######################
35#-Q- sx8brodie #PBS -N ::Jobname::         # nom de la requete
36#-Q- sx8brodie #PBS -m a                   # message a la fin du job
37#-Q- sx8brodie #PBS -j o                   # regroupement des sorties du job : standard error et output
38#-Q- sx8brodie #PBS -o Script_Output_::Jobname::.000001  # nom du fichier de sortie
39#-Q- sx8brodie #PBS -S /usr/bin/ksh        # shell de soumission
40#-Q- sx8brodie #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot::
41#-Q- sx8brodie #PBS -q ::JobClass::                # classe multi pour BATCH_NUM_PROC_TOT superieur a 2, mono sinon
42#-Q- sx8brodie #PBS -l cpunum_job=${BATCH_NUM_PROC_TOT}  # reservation des processeurs pour le job
43#-Q- sx8brodie #PBS -l memsz_job=15.0gb     # Limite memoire
44#-Q- sx8brodie #PBS -l cputim_job=1:00:00  # Limite temps
45#-Q- aix6 #!/usr/bin/ksh
46#-Q- aix6 # ######################
47#-Q- aix6 # ##   VARGAS IDRIS   ##
48#-Q- aix6 # ######################
49#-Q- aix6 # Nom de la requete
50#-Q- aix6 # @ job_name = ::Jobname::
51#-Q- aix6 # Type de travail
52#-Q- aix6 # @ job_type = parallel
53#-Q- aix6 # Fichier de sortie standard
54#-Q- aix6 # @ output = $(job_name).$(jobid)
55#-Q- aix6 # Fichier de sortie erreur (le meme)
56#-Q- aix6 # @ error =  $(job_name).$(jobid)
57#-Q- aix6 # Nombre de processus demandes
58#-Q- aix6 # @ total_tasks = ::JobNumProcTot::
59#-Q- aix6 # @ environment = "BATCH_NUM_PROC_TOT=::JobNumProcTot::"
60#-Q- aix6 # Temps CPU max. par processus MPI hh:mm:ss
61#-Q- aix6 # @ wall_clock_limit = 1:00:00
62#-Q- aix6 # Memoire max. utilisee par processus
63#-Q- aix6 # @ data_limit = 3.2gb
64#-Q- aix6 # Memoire stack demandee
65#-Q- aix6 # @ stack_limit = 0.3gb,0.3gb
66#-Q- aix6 # Pas d OpenMP
67#-Q- aix6 # @ resources = ConsumableCpus(1)
68#-Q- aix6 # Fin de l entete
69#-Q- aix6 # @ queue
70#-Q- ulam #!/usr/bin/ksh
71#-Q- ulam # ####################################################
72#-Q- ulam # ##  ULAM IDRIS                                    ##
73#-Q- ulam # ##  Usefull for postprocessing. AA_job not tested ##
74#-Q- ulam # ####################################################
75#-Q- ulam #
76#-Q- sx8mercure #!/bin/ksh
77#-Q- sx8mercure ######################
78#-Q- sx8mercure ## SX8MERCURE   CEA ##
79#-Q- sx8mercure ######################
80#-Q- sx8mercure #PBS -N ::Jobname::           # nom de la requete
81#-Q- sx8mercure #PBS -m a                     # message a la fin du job
82#-Q- sx8mercure #PBS -j o                     # regroupement des sorties du job : standard error et output
83#-Q- sx8mercure ####PBS -A gen6178
84#-Q- sx8mercure #PBS -o Script_Output_::Jobname::.000001   # nom du fichier de sortie
85#-Q- sx8mercure #PBS -S /usr/bin/ksh          # shell de soumission
86#-Q- sx8mercure #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot::
87#-Q- sx8mercure #PBS -l cpunum_job=${BATCH_NUM_PROC_TOT}          # reservation des processeurs pour le job
88#-Q- sx8mercure #PBS -l memsz_job=15.0gb       # limite memoire
89#-Q- sx8mercure #PBS -l elapstim_req=01:00:00 # limite en temps elapsed
90#-Q- sx9mercure #!/bin/ksh
91#-Q- sx9mercure ######################
92#-Q- sx9mercure ## SX9MERCURE   CEA ##
93#-Q- sx9mercure ######################
94#-Q- sx9mercure #PBS -N ::Jobname::           # nom de la requete
95#-Q- sx9mercure #PBS -m a                     # message a la fin du job
96#-Q- sx9mercure #PBS -j o                     # regroupement des sorties du job : standard error et output
97#-Q- sx9mercure #PBS -o Script_Output_::Jobname::.000001   # nom du fichier de sortie
98#-Q- sx9mercure #PBS -S /usr/bin/ksh          # shell de soumission
99#-Q- sx9mercure #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot::
100#-Q- sx9mercure #PBS -l cpunum_job=${BATCH_NUM_PROC_TOT}          # reservation des processeurs pour le job
101#-Q- sx9mercure #PBS -l memsz_job=16.0gb       # limite memoire
102#-Q- sx9mercure #PBS -l elapstim_req=24:00:00 # limite en temps elapsed
103#-Q- sx9mercure #PBS -A gen6178               # groupe obligatoire sur SX9
104#-Q- sx9mercure #PBS -q para-sx9              # para-sx9 or prio-sx9 (for CMIP5 top priorities), bckg-sx9 (run with free slot) and test-sx9 (if elapsed<1h)
105#-Q- lxiv8 ######################
106#-Q- lxiv8 ## OBELIX      LSCE ##
107#-Q- lxiv8 ######################
108#-Q- lxiv8 #PBS -N ::Jobname::
109#-Q- lxiv8 #PBS -m a
110#-Q- lxiv8 #PBS -j oe
111#-Q- lxiv8 #PBS -q medium
112#-Q- lxiv8 #PBS -o Script_Output_::Jobname::.000001
113#-Q- lxiv8 #PBS -S /bin/ksh
114#-Q- lxiv8 #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot::
115#-Q- lxiv8 #PBS -l nodes=1:ppn=::JobNumProcTot::
116#-Q- default #!/bin/ksh
117#-Q- default ##################
118#-Q- default ## DEFAULT HOST ##
119#-Q- default ##################
120#-Q- default #For MPI use, uncomment next line :
121#-Q- default #BATCH_NUM_PROC_TOT=::JobNumProcTot::
122
123#**************************************************************
124# Author: Sebastien Denvil
125# Contact: Sebastien.Denvil__at__ipsl.jussieu.fr
126# $Revision::                                          $ Revision of last commit
127# $Author::                                            $ Author of last commit
128# $Date::                                              $ Date of last commit
129# IPSL (2006)
130#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
131#
132#**************************************************************
133
134#set -eu
135#set -vx
136
137date
138echo
139echo "#######################################"
140echo "#       ANOTHER GREAT SIMULATION      #"
141echo "#######################################"
142echo
143
144#D--------------------------------------------------------------------==
145#D--------------------------------------------------------------------==
146#D-
147#D-                      Job to launch IGCM models
148#D-
149#D--------------------------------------------------------------------==
150#D--------------------------------------------------------------------==
151#D-
152
153MODIPSL=::modipsl::
154libIGCM=${MODIPSL}/libIGCM
155
156#D--------------------------------------------------------------------==
157#D-                   -1. User modification place
158#D-                      - Job Verbosity
159#D-                      - PeriodNb
160#D-                      - Experience type : DEB(ug), DEV(elopment), RUN
161#D--------------------------------------------------------------------==
162
163#D- Increased verbosity (1, 2, 3)
164Verbosity=3
165#D- Number of execution in one job
166PeriodNb=1
167#-Q- sx9mercure PeriodNb=60
168
169#D-
170# --------------------------------------------------------------------
171#D- ! Optionnal features /!\ Use with care !
172# --------------------------------------------------------------------
173
174#D- Low level debug : to bypass lib test checks and stack construction
175#D- Default=true
176DEBUG_debug=false
177
178#D- Set DEBUG_sys to false to disable output calls of function
179#D- Default=true
180#DEBUG_sys=false
181
182#D- Experience type : DEB(ug), DEV(elopment), RUN (default)
183JobType=RUN
184
185#D- Define running directory
186#D- Default=${TMPDIR} ie temporary batch directory
187#RUN_DIR_PATH=/workdir/or/scratchdir/of/this/machine
188
189#D- Define submit directory
190#D- Default= where you launch qsub (variable from scheduler)
191#SUBMIT_DIR=$( pwd )
192
193#D- Define BIG_DIR directory
194#D- Default=(strongly machine dependant/see libIGCM_sys for details)
195#BIG_DIR=/somewhere/with/lot/of/space/scratchdir/may/be
196
197#D- Turn in dry run mode ? (0,1,2,3)
198#D- Default=0
199#DRYRUN=3
200# YOU MUST COMPILE YOUR EXE FILES FOR DRYRUN MODE !
201# -------------------------------------------------------------------------------------
202# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest |
203# |          |  Cp/Exe param files |            |  Chmod  |                           |
204# |          |      Qsub           |            |         |                           |
205# -------------------------------------------------------------------------------------
206# |    0     |       yes           |    yes     |  yes    |      yes                  |
207# -------------------------------------------------------------------------------------
208# |    1     |       yes           |    yes     |  yes    |      no                   |
209# -------------------------------------------------------------------------------------
210# |    2     |       yes           |    yes     |  no     |      no                   |
211# -------------------------------------------------------------------------------------
212# |    3     |       yes           |    no      |  no     |      no                   |
213# -------------------------------------------------------------------------------------
214
215#D- Define input file root directory
216#D- Default=/IGCMG/common/account/of/this/machine
217#R_IN=/u/rech/por/rpor111/DATA
218
219#D-
220#D--------------------------------------------------------------------==
221#D-                   0. System Environment
222#D-                      - Define variables for Number of processors
223#D-                      - Define MPI variables
224#D-                      - Define batch scheduler variables
225#D-                      - Source IGCM Library
226#D-                      - Get RESOLution in .resol file (temporary)
227#D--------------------------------------------------------------------==
228
229#D--------------------------------------------------------------------==
230
231. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
232       ( ${DEBUG_debug} ) && IGCM_debug_Check
233. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
234       ( ${DEBUG_debug} ) && IGCM_card_Check
235. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
236       ( ${DEBUG_debug} ) && IGCM_date_Check
237#-------
238. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
239. ${libIGCM}/libIGCM_config/libIGCM_config.ksh
240. ${libIGCM}/libIGCM_comp/libIGCM_comp.ksh
241. ${libIGCM}/libIGCM_post/libIGCM_post.ksh
242
243#D--------------------------------------------------------------------==
244
245#-- Resolution FLAG for oasis input
246[ -f ${SUBMIT_DIR}/../.resol ] && RESOL=$(head -1 ${SUBMIT_DIR}/../.resol)
247#RESOL="ORCA2xLMD9671"
248
249#D-
250#D--------------------------------------------------------------------==
251#D-           1. INITIALIZE CONFIGURATION AND THEN COMPONENTS
252#D--------------------------------------------------------------------==
253
254# --------------------------------------------------------------------==
255#D- Initialize configuration :
256#D-              - Simulation configuration
257#D-              - Simulation parameters
258#D-              - Execution parameter
259#D-              - Define input files directory
260#D-              - Read or initialize CumulPeriod
261#D-              - run.card
262#D-
263# --------------------------------------------------------------------==
264IGCM_config_Initialize
265
266# --------------------------------------------------------------------==
267#D- Define, create and cd RUN_DIR
268#D- 
269# --------------------------------------------------------------------==
270RUN_DIR=${RUN_DIR_PATH}/${config_UserChoices_TagName}/${config_UserChoices_JobName}.${$}
271IGCM_sys_MkdirWork ${RUN_DIR}
272IGCM_sys_Cd ${RUN_DIR}
273
274# --------------------------------------------------------------------==
275#D- Initialize each components taking part
276#D- into simulation configuration :
277#D-         - Define component executable
278#D-         - Define Write Frequency by component "1M" "1D" ...
279#D-         - Source ${comp}.driver
280#D-         - Define Storage Places by component
281#D-         - ${comp}_Initialize :
282#D-         - Patterns to sed
283#D-         - Variables from namelist
284#D-
285# --------------------------------------------------------------------==
286IGCM_comp_Initialize
287
288# --------------------------------------------------------------------==
289#D- Verify compatibility of period length, write frequencies, ...
290#D- Verify compatibility of rebuild choices and post-process choices
291#D- Will stop here if something is wrong
292# --------------------------------------------------------------------==
293IGCM_config_Check
294
295# ------------------------------------------------------------------
296#D- Test if all was right before entering the period loop
297# ------------------------------------------------------------------
298IGCM_debug_Verif_Exit
299
300#D--------------------------------------------------------------------==
301#D-                  2. ENTER THE DEEP EXECUTION LOOP
302#D-                  !!!! FASTEN YOUR SEAT BELTS !!!!
303#D-                  !!!!!      PLEASE.          !!!!
304#D-                  !! WE WILL CROSS TURBULENCES. !!
305#D--------------------------------------------------------------------==
306
307Period=1
308
309PeriodContinue=false
310if [ ${Period} -le ${PeriodNb} ]; then
311    PeriodContinue=true
312fi
313while ( ${PeriodContinue} ) ; do
314
315    echo
316    echo "Starting iteration ${Period} / ${PeriodNb}"
317
318    #D-
319    # ------------------------------------------------------------------
320    #D- COMPUTE AND DEFINE DATE STUFF.
321    # ------------------------------------------------------------------
322    IGCM_config_PeriodStart
323    #D- => ${PeriodDateBegin}
324    #D- => ${PeriodDateEnd}
325    #D- => ${CumulPeriod}
326    #D- => ${DatesPeriod}=${PeriodDateBegin}_${PeriodDateEnd}
327    #D- => ${PeriodLength} => JOURS=31 , 28, 29, 30 ; MOIS=0 ; ANS=0
328    #D- => update run.card value
329   
330    #D-
331    # ------------------------------------------------------------------
332    #D- BEGIN COMPUTATION ONLY IF NEEDED
333    # ------------------------------------------------------------------
334    if [ ${SimulationLengthInDays} -gt ${ExperienceLengthInDays} ] ; then
335        break ;
336    fi
337   
338    #D-
339    # ------------------------------------------------------------------
340    #D- Optionnal function in driver
341    #D- to set special variables used in forward lists (Param, Init or Bc).
342    # ------------------------------------------------------------------
343    IGCM_comp_PeriodStart
344   
345    #D-
346    # ------------------------------------------------------------------
347    #D- Get parameters text files updated by job (.def, namelist ...)
348    #D- READ AND USE BY GCM AT EACH EXECUTION.
349    # ------------------------------------------------------------------
350    IGCM_comp_GetInputParametersFiles
351
352    #D-
353    # ------------------------------------------------------------------
354    #D- Get initial state (Etat0, carteveg,relief...)
355    #D- NECESSARY ONLY IF CumulPeriod= (=> NUMERO) == 1
356    #D- AND ???_Restart=NO
357    #D- READ AND USE BY GCM FOR ONLY ONE EXECUTION.
358    # ------------------------------------------------------------------
359    IGCM_comp_GetInputInitialStateFiles
360
361    #D-
362    # ------------------------------------------------------------------
363    #D- Get Boundaries Conditions (SST, WIND[X,Y,Z], LAI ...)
364    #D- READ AND USE BY GCM AT EACH EXECUTION.
365    # ------------------------------------------------------------------
366    IGCM_comp_GetInputBoundaryFiles
367
368    #D-
369    # ------------------------------------------------------------------
370    #D- Get SmoothFiles Conditions (SST, WIND[X,Y,Z], LAI ...)
371    #D- READ AND USE BY GCM AT EACH EXECUTION but varying in time
372    # ------------------------------------------------------------------
373    IGCM_comp_GetInputSmoothFiles
374
375    #D-
376    # ------------------------------------------------------------------
377    #D- Get restart files (restartphy.nc, orca_restart.nc ...)
378    #D- READ AND USE BY GCM AT EACH EXECUTION.
379    #D-
380    #D- IF A COMPONENT DO NOT RESTART FROM PREVIOULSY COMPUTED RESTART
381    #D- ONLY IF CumulPeriod= (=> NUMERO) == 1
382    #D- MUST EXECUTE CREATE ETAT0_LIMIT (TYPICALLY LMDZ AND ./create_etat0_limit.e)
383    #D-
384    #D- IF CumulPeriod == 1
385    #D- AND A COMPONENT RESTART FROM PREVIOULSY COMPUTED RESTART
386    #D- MUST BRING THIS RESTART IN ${RUN_DIR_PATH}
387    #D-
388    #D- ELSE BRING RESTART FROM ${JobName} IN ${RUN_DIR_PATH}
389    # ------------------------------------------------------------------
390    IGCM_comp_GetInputRestartFiles
391   
392    #D-
393    # ------------------------------------------------------------------
394    #D- Test if all was right before Update
395    # ------------------------------------------------------------------
396    IGCM_debug_Verif_Exit
397
398    # ------------------------------------------------------------------
399    #D- Activate running environnement variables
400    # ------------------------------------------------------------------
401    IGCM_sys_activ_variables
402
403    #D-
404    # ------------------------------------------------------------------
405    #D- UPDATE ParametersFiles (.def, namelist ...) with
406    #D- current value of (ORCA_NIT00, ORCA_LRSTAR, RAZ_DATE, ...)
407    # ------------------------------------------------------------------
408    IGCM_comp_Update
409
410    #D-
411    # ------------------------------------------------------------------
412    #D- Test if all was right before execution
413    # ------------------------------------------------------------------
414    IGCM_debug_Verif_Exit
415
416    #D-
417    #D----------------------------------------------------------------==
418    #D-                          3. Execution
419    #D----------------------------------------------------------------==
420
421    echo
422    echo "#######################################"
423    echo "#      DIR BEFORE RUN EXECUTION       #"
424    echo "#######################################"
425    echo
426    ls -lrt
427
428    echo "========================================================================"
429    if ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) ; then
430        MPIRUN_COMMAND=${HOST_MPIRUN_COMMAND}
431        eval MPIRUN_OPTIONS=${config_UserChoices_JobRunOptions}
432    else
433        MPIRUN_COMMAND=${MPIRUN_COMMAND:="time "}
434        MPIRUN_OPTIONS=${MPIRUN_OPTIONS:=""}
435    fi
436
437    if [ ${DRYRUN} -le 1 ] ; then
438        REAL_DATE_INIT=$( date )
439        echo "EXECUTION of : ${MPIRUN_COMMAND} ${MPIRUN_OPTIONS} ./${config_Executable_Name}   > ${Exe_Output} 2>&1"
440        echo                                                                                   > ${Exe_Output}
441        echo "#######################################"                                        >> ${Exe_Output}
442        echo "EXECUTION of : ${MPIRUN_COMMAND} ${MPIRUN_OPTIONS} ./${config_Executable_Name}" >> ${Exe_Output}
443        echo                                                                                  >> ${Exe_Output}
444        typeset RET
445        RUN_DATE_BEGIN=$( date '+%Y-%m-%dT%H:%M:%S' )
446        ${MPIRUN_COMMAND} ${MPIRUN_OPTIONS} ./${config_Executable_Name} >> ${Exe_Output} 2>&1
447        RET=$?
448        RUN_DATE_END=$( date '+%Y-%m-%dT%H:%M:%S' )
449        if [ ${RET} -gt 0 ] ; then
450            echo "Return code of executable :" ${RET}
451            IGCM_debug_Exit "EXECUTABLE"
452            IGCM_sys_Cp ${Exe_Output} ${SUBMIT_DIR}/${PREFIX}_${Exe_Output}_error
453        fi
454        echo                                            >> ${Exe_Output}
455        echo "#######################################"  >> ${Exe_Output}
456        echo "libIGCM RunDateBegin=${RUN_DATE_BEGIN}"   >> ${Exe_Output}
457        echo "libIGCM RunDateEnd=${RUN_DATE_END}"       >> ${Exe_Output}
458        echo                                            >> ${Exe_Output}
459    else
460        echo "EXECUTION of : ${MPIRUN_COMMAND} ${MPIRUN_OPTIONS} ./${config_Executable_Name} simulated for DRYRUN = " $DRYRUN
461        if ( $DEBUG_debug ) ; then
462            echo "FOR EXECUTION DRYRUN mode = " $DRYRUN >> stack
463        fi
464    fi
465    echo "========================================================================"
466
467    echo
468    echo "#######################################"
469    echo "#       DIR AFTER RUN EXECUTION       #"
470    echo "#######################################"
471    echo
472    ls -lrt
473
474    #D-
475    # ------------------------------------------------------------------
476    #D- Desactivate running environnement variables
477    # ------------------------------------------------------------------
478    IGCM_sys_desactiv_variables
479
480    #D-
481    #D----------------------------------------------------------------==
482    #D-                    4. Post execution operations
483    #D----------------------------------------------------------------==
484
485    #D-
486    # ------------------------------------------------------------------
487    #D- Save on archive machine netcdf outputs, restarts
488    #D- and text files of models
489    # ------------------------------------------------------------------
490    IGCM_comp_Finalize
491
492    #D-
493    # ------------------------------------------------------------------
494    #D- Test if all was right after Finalize
495    # ------------------------------------------------------------------
496    IGCM_debug_Verif_Exit
497
498    #D-
499    # ------------------------------------------------------------------
500    #D- Configure asynchronous post-treatment (Level 0) when necessary (rebuild)
501    #D- Configure classic post-treatment (Level 1) when necessary (TimeSeries/Seasonal)
502    # ------------------------------------------------------------------
503    IGCM_post_Configure
504
505    #D-
506    # ------------------------------------------------------------------
507    #D- Launch remote rebuild or/and post-treatment process if necessary
508    # ------------------------------------------------------------------
509    IGCM_post_Submit
510
511    #D-
512    # ------------------------------------------------------------------
513    #D- Save job output
514    #D- Manage executable size to save only different binary
515    #D- Write in run.card user, system and elapse time
516    #D- Check that everything went well ! No ? then we stop.
517    #D- Determine next computed period
518    # ------------------------------------------------------------------
519    IGCM_config_PeriodEnd
520
521    echo "Ending iteration ${Period}"
522    (( Period = Period + 1 ))
523
524    # End loop if date end is reached
525    if [ ${SimulationLengthInDays} -ge ${ExperienceLengthInDays} ] ; then
526        break ;
527    fi
528
529    PeriodContinue=false
530    if [ ${Period} -le ${PeriodNb} ]; then
531        PeriodContinue=true
532    fi
533done
534
535#D-
536#D--------------------------------------------------------------------==
537#D-     5. Submit next job or send mail if simulation over.
538#D--------------------------------------------------------------------==
539IGCM_config_Finalize
540
541date
Note: See TracBrowser for help on using the repository browser.