source: trunk/libIGCM/AA_job @ 445

Last change on this file since 445 was 445, checked in by sdipsl, 13 years ago

Standard error and standard output end up in the same file.

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