source: trunk/libIGCM/AA_job @ 1234

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