source: trunk/libIGCM/AA_job @ 1240

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