source: tags/libIGCM_v2.8.1/AA_job

Last change on this file was 1315, checked in by sdipsl, 8 years ago
  • Necessary changes due to rencent maintenance at TGCC.
  • 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: 21.7 KB
Line 
1#-Q- curie #!/bin/ksh
2#-Q- curie ######################
3#-Q- curie ## CURIE   TGCC/CEA ##
4#-Q- curie ######################
5#-Q- curie #MSUB -r ::Jobname::        # Job Name
6#-Q- curie #MSUB -o Script_Output_::Jobname::.000001    # standard output
7#-Q- curie #MSUB -e Script_Output_::Jobname::.000001    # error output
8#-Q- curie #MSUB -eo
9#-Q- curie #MSUB -n ::JobNumProcTot::  # Number of MPI tasks (SPMD case) or cores (MPMD case)
10#-Q- curie #MSUB -c ::openMPthreads::  # Number of openMP threads. To specify only for SMPD
11#-Q- curie #MSUB -x                    # exclusive node. To specify only for MPMD together with the one below
12#-Q- curie #MSUB -E '--cpu_bind=none'
13#-Q- curie #MSUB -T 86400              # Wall clock limit (seconds)
14#-Q- curie #MSUB -q standard           # thin nodes
15#-Q- curie #MSUB -U medium             # priority within a project
16#-Q- curie #MSUB -A ::default_project::
17#-Q- curie # Below specific options that can be activated
18#-Q- curie ##MSUB -q ivybridge         # Option for Airain
19#-Q- curie
20#-Q- curie BATCH_NUM_PROC_TOT=$BRIDGE_MSUB_NPROC
21#-Q- curie set +x
22#-Q- ada #!/bin/ksh
23#-Q- ada # ######################
24#-Q- ada # ##  ADA       IDRIS ##
25#-Q- ada # ######################
26#-Q- ada # Job name
27#-Q- ada # @ job_name = ::Jobname::
28#-Q- ada # Standard output file name
29#-Q- ada # @ output = Script_Output_::Jobname::.000001
30#-Q- ada # Error output file name
31#-Q- ada # @ error = Script_Output_::Jobname::.000001
32#-Q- ada # Job type
33#-Q- ada # @ job_type = parallel
34#-Q- ada # Total number of tasks
35#-Q- ada # @ total_tasks = ::JobNumProcTot::
36#-Q- ada # Specific option for OpenMP parallelization: Number of OpenMP threads per MPI task
37#-Q- ada # @ parallel_threads = ::openMPthreads::
38#-Q- ada # Memory : as_limit=3.5gb max per process per core. With 4 threads per process use max as_limit=14gb
39#-Q- ada # @ as_limit = 3.5gb
40#-Q- ada # Maximum CPU time per task hh:mm:ss
41#-Q- ada # @ wall_clock_limit = 1:00:00
42#-Q- ada # @ environment = "BATCH_NUM_PROC_TOT=::JobNumProcTot::" ; wall_clock_limit=$(wall_clock_limit)
43#-Q- ada # End of the header options
44#-Q- ada # @ queue
45#-Q- lxiv8 ######################
46#-Q- lxiv8 ## OBELIX      LSCE ##
47#-Q- lxiv8 ######################
48#-Q- lxiv8 #PBS -N ::Jobname::
49#-Q- lxiv8 #PBS -m a
50#-Q- lxiv8 #PBS -j oe
51#-Q- lxiv8 #PBS -q mediump
52#-Q- lxiv8 #PBS -o Script_Output_::Jobname::.000001
53#-Q- lxiv8 #PBS -S /bin/ksh
54#-Q- lxiv8 #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot::
55#-Q- lxiv8 #PBS -l nodes=1:ppn=::JobNumProcTot::
56#-Q- ifort_CICLAD ######################
57#-Q- ifort_CICLAD ##   CICLAD    IPSL ##
58#-Q- ifort_CICLAD ######################
59#-Q- ifort_CICLAD #PBS -N ::Jobname::
60#-Q- ifort_CICLAD #PBS -m a
61#-Q- ifort_CICLAD #PBS -j oe
62#-Q- ifort_CICLAD ###PBS -q h12   # Queue for 12 hours at ciclad only
63#-Q- ifort_CICLAD #PBS -o Script_Output_::Jobname::.000001
64#-Q- ifort_CICLAD #PBS -S /bin/ksh
65#-Q- ifort_CICLAD #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot::
66#-Q- ifort_CICLAD #PBS -l nodes=1:ppn=::JobNumProcTot::
67#-Q- ifort_CICLAD #PBS -l mem=6gb
68#-Q- ifort_CICLAD #PBS -l vmem=30gb
69#-Q- default #!/bin/ksh
70#-Q- default ##################
71#-Q- default ## DEFAULT HOST ##
72#-Q- default ##################
73#-Q- default #For MPI use, uncomment next line :
74#-Q- default #BATCH_NUM_PROC_TOT=::JobNumProcTot::
75
76#**************************************************************
77# Author: Sebastien Denvil
78# Contact: Sebastien.Denvil__at__ipsl.jussieu.fr
79# $Revision::                                          $ Revision of last commit
80# $Author::                                            $ Author of last commit
81# $Date::                                              $ Date of last commit
82# IPSL (2006)
83#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
84#
85#**************************************************************
86
87#set -eu
88#set -vx
89
90date
91echo
92echo "#######################################"
93echo "#       ANOTHER GREAT SIMULATION      #"
94echo "#######################################"
95echo
96
97#D--------------------------------------------------------------------==
98#D-
99#D-                      Job to launch IGCM models
100#D-
101#D--------------------------------------------------------------------==
102#D-
103
104MODIPSL=::modipsl::
105libIGCM=${MODIPSL}/libIGCM
106
107#D--------------------------------------------------------------------==
108#D- -1. PLACE FOR USER MODIFICATION
109#D-     - Job Verbosity
110#D-     - PeriodNb
111#D-     - Experience type : DEB(ug), DEV(elopment), RUN
112#D--------------------------------------------------------------------==
113
114#D- Task type (computing or post-processing)
115TaskType=computing
116
117#D- Increased verbosity (1, 2, 3)
118Verbosity=3
119
120#D- postProcessingStopLevel (0,1,2,3)
121#D- 3 stop the main job if any post-processing went wrong (atlas, monitoring, metrics, create_ts, create_se, rebuild or pack_*)
122#D- 2 stop only if create_ts, create_se or pack_* failed  (dont stop if atlas, monitoring or metrics failed)
123#D- 1 stop only if pack_* failed (dont stop if atlas, monitoring, metrics, create_ts or create_se failed)
124#D- 0 never stop the main job for post-processing that went wrong
125postProcessingStopLevel=1
126
127#D- Experience type : DEB(ug), DEV(elopment), RUN (default)
128#D- DEB : set -vx mode + output files are NOT read only
129#D- DEV : output files are NOT read only
130#D- RUN : output files ARE read only
131JobType=RUN
132
133#D- Number of execution in one job
134PeriodNb=1
135
136#D-
137#D- --------------------------------------------------------------------------------------------------#
138#D-                          ! OPTIONNAL FEATURES /!\ USE WITH CARE !                                 #
139#D- --------------------------------------------------------------------------------------------------#
140
141
142#D- Low level debug : to perform lib test checks, stack construction and IO functions instrumentation
143#D- Default=true
144#D-
145DEBUG_debug=true
146
147#D- Messaging : all activities and call stacks will be sent to ipsl servers
148#D- If true will imply DEBUG_debug=true
149#D- Default=false
150#D-
151BigBrother=true
152
153#D- Set DEBUG_sys to false to disable output calls of function
154#D- true when JobType=DEB # means DEB(ug)
155#D-
156#DEBUG_sys=false
157
158#D- Define running directory
159#D- Default=${TMPDIR} ie temporary batch directory
160#D-
161#RUN_DIR_PATH=/workdir/or/scratchdir/of/this/machine
162
163#D- Define submit directory
164#D- Default= where you launch qsub (variable from scheduler)
165#D-
166#SUBMIT_DIR=$( pwd )
167
168#D- Define input file root directory
169#D- Default=/IGCMG/common/account/of/this/machine
170#D-
171#R_IN=/u/rech/por/rpor111/DATA
172
173#D- Turn in dry run mode ? (0,1,2,3)
174#D- Default=0
175#D-
176#DRYRUN=3
177#D-# YOU HAVE TO COMPILE YOUR EXE FILES to USE DRYRUN MODE !
178#D-# -------------------------------------------------------------------------------------
179#D-# | DRYRUN=  |  Date computations, | sys_Get    |  Exe    | sys_Put_Out; sys_Put_Rest |
180#D-# |          |  Cp/Exe/param/files |            |         |                           |
181#D-# |          |  Chmod Qsub         |            |         |                           |
182#D-# -------------------------------------------------------------------------------------
183#D-# |    0     |       yes           |    yes     |  yes    |      yes                  |
184#D-# -------------------------------------------------------------------------------------
185#D-# |    1     |       yes           |    yes     |  yes    |      no                   |
186#D-# -------------------------------------------------------------------------------------
187#D-# |    2     |       yes           |    yes     |  no     |      no                   |
188#D-# -------------------------------------------------------------------------------------
189#D-# |    3     |       yes           |    no      |  no     |      no                   |
190#D-# -------------------------------------------------------------------------------------
191
192#D-
193# --------------------------------------------------------------------------------------------------#
194#D- ! END OF OPTIONNAL FEATURES /!\ DO NOT MODIFY ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING #
195# --------------------------------------------------------------------------------------------------#
196
197#D-
198#D--------------------------------------------------------------------==
199#D- 0.0 SYSTEM ENVIRONMENT
200#D-     - Define variables for Number of processors
201#D-     - Define MPI variables
202#D-     - Define batch scheduler variables
203#D-     - Source IGCM Library
204#D-     - Get RESOLution in .resol file (temporary)
205#D--------------------------------------------------------------------==
206
207#---------------------------------------------------------------------==
208
209. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
210. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
211. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
212#-------
213. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
214. ${libIGCM}/libIGCM_config/libIGCM_config.ksh
215. ${libIGCM}/libIGCM_comp/libIGCM_comp.ksh
216. ${libIGCM}/libIGCM_post/libIGCM_post.ksh
217#-------
218( ${DEBUG_debug} ) && IGCM_debug_Check
219( ${DEBUG_debug} ) && IGCM_card_Check
220( ${DEBUG_debug} ) && IGCM_date_Check
221
222#--------------------------------------------------------------------==
223
224#-- Resolution FLAG for oasis input
225#RESOL="ORCA2xLMD9671"
226[ -f ${SUBMIT_DIR}/../.resol ] && RESOL=$(head -1 ${SUBMIT_DIR}/../.resol)
227#-- Chemistrie FLAG to ease chemistries configurations management
228#CHEM="AER"
229[ -f ${SUBMIT_DIR}/../.chimie ] && eval $(grep CHEM ${SUBMIT_DIR}/../.chimie)
230
231#D-
232#D--------------------------------------------------------------------==
233#D- 0.1 COMMON ENVIRONMENT
234#D-     - Read libIGCM compatibility version in config.card
235#D-     - Read UserChoices section
236#D-     - Read Ensemble section
237#D-     - Read Post section
238#D-     - Define all netcdf output directories
239#D--------------------------------------------------------------------==
240IGCM_config_CommonConfiguration ${SUBMIT_DIR}/config.card
241
242if [ ! -r ${SUBMIT_DIR}/run.card ] ; then
243  #================================================#
244  #         The file run.card doesn't exist        #
245  #================================================#
246  FirstInitialize=true
247  #copy initial run.card
248  IGCM_sys_Cp ${SUBMIT_DIR}/run.card.init ${SUBMIT_DIR}/run.card
249  IGCM_debug_Print 2 "run.card copied from run.card.init"
250else
251  FirstInitialize=false
252  IGCM_debug_Print 2 "run.card exists"
253fi
254
255# ------------------------------------------------------------------
256# Activate BigBrother so as to supervise this simulation
257# ------------------------------------------------------------------
258IGCM_debug_BigBro_Initialize
259
260#D-
261#D--------------------------------------------------------------------==
262#D- 1. INITIALIZE CONFIGURATION
263#D-    - Simulation configuration
264#D-    - Simulation parameters
265#D-    - Execution parameter
266#D-    - Define input files directory
267#D-    - Read or initialize CumulPeriod
268#D-    - run.card
269#D--------------------------------------------------------------------==
270IGCM_config_Initialize
271
272# --------------------------------------------------------------------==
273# Define, create and cd RUN_DIR
274# --------------------------------------------------------------------==
275RUN_DIR=${RUN_DIR_PATH}/${config_UserChoices_JobName}.${$}
276IGCM_sys_MkdirWork ${RUN_DIR}
277IGCM_sys_Cd ${RUN_DIR}
278
279# ------------------------------------------------------------------
280# Test if all was right before proceeding further
281# ------------------------------------------------------------------
282IGCM_debug_Verif_Exit
283
284#D-
285#D---------------------------------------------------------------------==
286#D- 2. INITIALIZE ALL COMPONENT OF THE CONFIGURATION
287#D-    - Define component executable
288#D-    - Define Write Frequency by component "1M" "1D" ...
289#D-    - Source ${comp}.driver
290#D-    - Define Storage Places by component
291#D-    - ${comp}_Initialize :
292#D-    - Patterns to sed
293#D-    - Variables from namelist
294#D---------------------------------------------------------------------==
295IGCM_comp_Initialize
296
297#D-
298#D---------------------------------------------------------------------==
299#D- 3. PERFORM GENERAL VERIFICATION
300#D-    - Verify compatibility of period length, write frequencies, ...
301#D-    - Verify compatibility of rebuild choices and post-process choices
302#D-    - Will stop here if something is wrong
303#D---------------------------------------------------------------------==
304IGCM_config_Check
305
306# ------------------------------------------------------------------
307# Test if all was right before entering the period loop
308# ------------------------------------------------------------------
309IGCM_debug_Verif_Exit
310
311#D-
312#D---------------------------------------------------------------------==
313#D- 4. ENTER THE DEEP EXECUTION LOOP
314#D-    ! FASTEN YOUR SEAT BELTS PLEASE. !
315#D-    !   WE WILL CROSS TURBULENCES.   !
316#D---------------------------------------------------------------------==
317
318Period=1
319
320PeriodContinue=false
321if [ ${Period} -le ${PeriodNb} ]; then
322  PeriodContinue=true
323fi
324while ( ${PeriodContinue} ) ; do
325
326  echo
327  echo "Starting iteration ${Period} / ${PeriodNb}"
328
329  #D-
330  # ------------------------------------------------------------------
331  #D-   4.1 COMPUTE AND DEFINE DATE INFORMATION.
332  #D-       - ${PeriodDateBegin}
333  #D-       - ${PeriodDateEnd}
334  #D-       - ${CumulPeriod}
335  #D-       - ${DatesPeriod}=${PeriodDateBegin}_${PeriodDateEnd}
336  #D-       - ${PeriodLength} => JOURS=31 , 28, 29, 30 ; MOIS=0 ; ANS=0
337  #D-       - update run.card value
338  # ------------------------------------------------------------------
339  IGCM_config_PeriodStart
340
341  #D-
342  # ------------------------------------------------------------------
343  #D-   4.2 BEGIN COMPUTATION ONLY IF NEEDED
344  # ------------------------------------------------------------------
345  if [ ${SimulationLengthInDays} -gt ${ExperienceLengthInDays} ] ; then
346    IGCM_debug_Print 1 "break because '${SimulationLengthInDays} -gt ${ExperienceLengthInDays}' : ${SimulationLengthInDays} -gt ${ExperienceLengthInDays}"
347    break ;
348  fi
349
350  #D-
351  # ------------------------------------------------------------------
352  #D-   4.3 CALL OPTIONNAL FUNCTION WITHIN DRIVER
353  #D-       - to set special variables used in lists (Param, Init or Bc).
354  # ------------------------------------------------------------------
355  IGCM_comp_PeriodStart
356
357  #D-
358  # ------------------------------------------------------------------
359  #D-   4.4 GET PARAMETERS TEXT FILES UPDATED BY JOB
360  #D-       - (.def, namelist ...)
361  #D-       - READ AND USE BY GCM AT EACH EXECUTION.
362  # ------------------------------------------------------------------
363  IGCM_comp_GetInputParametersFiles
364
365  #D-
366  # ------------------------------------------------------------------
367  #D-   4.5 GET INITIAL STATE
368  #D-       - (Etat0, carteveg,relief...)
369  #D-       - NECESSARY ONLY IF CumulPeriod= (=> NUMERO) == 1
370  #D-       - AND ???_Restart=NO
371  #D-       - READ AND USE BY GCM FOR ONLY ONE EXECUTION.
372  # ------------------------------------------------------------------
373  IGCM_comp_GetInputInitialStateFiles
374
375  #D-
376  # ------------------------------------------------------------------
377  #D-   4.6 GET BOUNDARIES CONDITIONS
378  #D-       - (SST, WIND[X,Y,Z], LAI ...)
379  #D-       - READ AND USE BY GCM AT EACH EXECUTION.
380  # ------------------------------------------------------------------
381  IGCM_comp_GetInputBoundaryFiles
382
383  #D-
384  # ------------------------------------------------------------------
385  #D-   4.7 GET SmoothFiles CONDITIONS
386  #D-       - (SST, WIND[X,Y,Z], LAI ...)
387  #D-       - READ AND USE BY GCM AT EACH EXECUTION
388  #D-       - Do not change at each ${Period}
389  # ------------------------------------------------------------------
390  IGCM_comp_GetInputSmoothFiles
391
392  #D-
393  # ------------------------------------------------------------------
394  #D-   4.8 GET RESTART FILES
395  #D-       - (restartphy.nc, orca_restart.nc ...)
396  #D-       - READ AND USE BY GCM AT EACH EXECUTION.
397  #D-
398  #D-       - IF A COMPONENT DO NOT RESTART FROM PREVIOULSY COMPUTED RESTART
399  #D-       - ONLY IF CumulPeriod= (=> NUMERO) == 1
400  #D-       - MUST EXECUTE CREATE ETAT0_LIMIT (TYPICALLY LMDZ AND ./create_etat0_limit.e)
401  #D-
402  #D-       - IF CumulPeriod == 1
403  #D-       - AND A COMPONENT RESTART FROM PREVIOULSY COMPUTED RESTART
404  #D-       - MUST BRING THIS RESTART IN ${RUN_DIR_PATH}
405  #D-
406  #D-       - ELSE BRING RESTART FROM ${JobName} IN ${RUN_DIR_PATH}
407  # ------------------------------------------------------------------
408  IGCM_comp_GetInputRestartFiles
409
410  # ------------------------------------------------------------------
411  # Test if all was right before Update
412  # ------------------------------------------------------------------
413  IGCM_debug_Verif_Exit
414
415  #D-
416  # ------------------------------------------------------------------
417  #D-   4.9 ACTIVATE RUNNING ENVIRONNEMENT VARIABLES
418  # ------------------------------------------------------------------
419  IGCM_sys_activ_variables
420
421  #D-
422  # ------------------------------------------------------------------
423  #D-   4.10 UPDATE ParametersFiles
424  #D-        - (.def, namelist ...)
425  #D-        - with current value of (ORCA_NIT00, ORCA_LRSTAR, RAZ_DATE, ...)
426  # ------------------------------------------------------------------
427  IGCM_comp_Update
428
429  # ------------------------------------------------------------------
430  # Test if all was right before execution
431  # ------------------------------------------------------------------
432  IGCM_debug_Verif_Exit
433
434  #D-
435  #D---------------------------------------------------------------------==
436  #D- 5. EXECUTION
437  #D---------------------------------------------------------------------==
438
439  echo
440  echo "#######################################"
441  echo "#      DIR BEFORE RUN EXECUTION       #"
442  echo "#######################################"
443  echo
444  ls -lrt
445
446  echo "========================================================================"
447  if [ ${DRYRUN} -le 1 ] ; then
448    REAL_DATE_INIT=$( date )
449    echo                                                                                   > ${Exe_Output}
450    echo "#######################################"                                        >> ${Exe_Output}
451    echo "EXECUTION of : ${EXECUTION}"
452    echo "EXECUTION of : ${EXECUTION}"                                                    >> ${Exe_Output}
453    echo                                                                                  >> ${Exe_Output}
454    typeset RET
455    RUN_DATE_BEGIN=$( date '+%Y-%m-%dT%H:%M:%S' )
456    ${EXECUTION}  >> ${Exe_Output} 2>&1
457    RET=$?
458    RUN_DATE_END=$( date '+%Y-%m-%dT%H:%M:%S' )
459    if [ ${RET} -gt 0 ] ; then
460      echo "Return code of executable :" ${RET}
461      IGCM_debug_Exit "EXECUTABLE"
462      IGCM_sys_Mkdir ${SUBMIT_DIR}/Debug
463      IGCM_sys_Cp ${Exe_Output} ${SUBMIT_DIR}/Debug/${PREFIX}_${Exe_Output}_error
464      ExecutionFail=true
465    fi
466    echo                                            >> ${Exe_Output}
467    echo "#######################################"  >> ${Exe_Output}
468    echo "libIGCM RunDateBegin=${RUN_DATE_BEGIN}"   >> ${Exe_Output}
469    echo "libIGCM RunDateEnd=${RUN_DATE_END}"       >> ${Exe_Output}
470    echo                                            >> ${Exe_Output}
471  else
472    echo "EXECUTION of : ${EXECUTION} simulated for DRYRUN = " $DRYRUN
473    echo "EXECUTION of : ${EXECUTION} simulated for DRYRUN = " $DRYRUN > ${Exe_Output}
474    if ( $DEBUG_debug ) ; then
475      echo "FOR EXECUTION DRYRUN mode = " $DRYRUN >> stack
476    fi
477  fi
478  echo "========================================================================"
479
480  echo
481  echo "#######################################"
482  echo "#       DIR AFTER RUN EXECUTION       #"
483  echo "#######################################"
484  echo
485  ls -lrt
486
487  #D-
488  #D---------------------------------------------------------------------==
489  #D- 6. POST EXECUTION OPERATIONS
490  #D---------------------------------------------------------------------==
491
492  #D-
493  # ------------------------------------------------------------------
494  #D-   6.1. DESACTIVATE RUNNING ENVIRONNEMENT VARIABLES
495  # ------------------------------------------------------------------
496  IGCM_sys_desactiv_variables
497
498  #D-
499  # ------------------------------------------------------------------
500  #D-   6.2. SAVE OUTPUTS
501  #D-        - On archive/storage machine
502  #D-        - netcdf outputs, restarts and text files of models
503  # ------------------------------------------------------------------
504  IGCM_comp_Finalize
505
506  # ------------------------------------------------------------------
507  # Test if all was right after Finalize
508  # ------------------------------------------------------------------
509  IGCM_debug_Verif_Exit
510
511  #D-
512  # ------------------------------------------------------------------
513  #D-   6.3. CONFIGURE POST-PROCESSING
514  #D-        - asynchronous post-treatment (Level 0) when necessary (rebuild/pack)
515  #D-        - classic post-treatment      (Level 1) when necessary (TimeSeries/Seasonal)
516  # ------------------------------------------------------------------
517  IGCM_post_Configure
518
519  #D-
520  # ------------------------------------------------------------------
521  #D-   6.4. SUBMIT POST-PROCESSING
522  #D-        - remote rebuild or/and post-treatment process if necessary
523  # ------------------------------------------------------------------
524  IGCM_post_Submit
525
526  #D-
527  # ------------------------------------------------------------------
528  #D-   6.5. FINALYZE CURRENT LOOP AND PREPARE NEXT ONE
529  #D-        - Manage executable size to save only different binary
530  #D-        - Write in run.card user, system and elapse time
531  #D-        - Check that everything went well ! No ? then we stop.
532  #D-        - Determine next computed period
533  # ------------------------------------------------------------------
534  IGCM_config_PeriodEnd
535
536  echo "Ending iteration ${Period}"
537  (( Period = Period + 1 ))
538
539  # End loop if date end is reached
540  if [ ${SimulationLengthInDays} -ge ${ExperienceLengthInDays} ] ; then
541    break ;
542  fi
543
544  PeriodContinue=false
545  if [ ${Period} -le ${PeriodNb} ]; then
546    PeriodContinue=true
547  fi
548done
549
550#D-
551#D---------------------------------------------------------------------==
552#D- 7. SUBMIT NEXT JOB OR SEND MAIL IF SIMULATION IS OVER.
553#D---------------------------------------------------------------------==
554IGCM_config_Finalize
555
556date
Note: See TracBrowser for help on using the repository browser.