source: trunk/libIGCM/AA_job @ 1246

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