source: tags/libIGCM_v2.8/AA_job @ 1456

Last change on this file since 1456 was 1301, checked in by jgipsl, 8 years ago

Changed default value for postProcessingStopLevel.
(SD, JG)

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