source: trunk/libIGCM/AA_job @ 1282

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