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
RevLine 
[704]1#-Q- curie #!/bin/ksh
[619]2#-Q- curie ######################
3#-Q- curie ## CURIE   TGCC/CEA ##
4#-Q- curie ######################
[1030]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
[619]8#-Q- curie #MSUB -eo
[1149]9#-Q- curie #MSUB -n ::JobNumProcTot::  # Number of MPI tasks (SPMD case) or cores (MPMD case)
[1238]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'
[1030]13#-Q- curie #MSUB -T 86400              # Wall clock limit (seconds)
14#-Q- curie #MSUB -q standard           # thin nodes
[837]15#-Q- curie #MSUB -A ::default_project::
[1108]16#-Q- curie # Below specific options that can be activated
17#-Q- curie ##MSUB -q ivybridge         # Option for Airain
18#-Q- curie
[619]19#-Q- curie BATCH_NUM_PROC_TOT=$BRIDGE_MSUB_NPROC
[681]20#-Q- curie set +x
[770]21#-Q- ada #!/bin/ksh
22#-Q- ada # ######################
[929]23#-Q- ada # ##  ADA       IDRIS ##
[770]24#-Q- ada # ######################
[1108]25#-Q- ada # Job name
[770]26#-Q- ada # @ job_name = ::Jobname::
[1108]27#-Q- ada # Standard output file name
[770]28#-Q- ada # @ output = Script_Output_::Jobname::.000001
[1108]29#-Q- ada # Error output file name
[770]30#-Q- ada # @ error = Script_Output_::Jobname::.000001
[1240]31#-Q- ada # Job type
32#-Q- ada # @ job_type = parallel
[1108]33#-Q- ada # Total number of tasks
[770]34#-Q- ada # @ total_tasks = ::JobNumProcTot::
[1240]35#-Q- ada # Specific option for OpenMP parallelization: Number of OpenMP threads per MPI task
36#-Q- ada # @ parallel_threads = ::openMPthreads::
[1108]37#-Q- ada # Maximum CPU time per task hh:mm:ss
[770]38#-Q- ada # @ wall_clock_limit = 1:00:00
[1240]39#-Q- ada # @ environment = "BATCH_NUM_PROC_TOT=::JobNumProcTot::" ; wall_clock_limit=$(wall_clock_limit)
[1108]40#-Q- ada # End of the header options
[770]41#-Q- ada # @ queue
[281]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
[1126]48#-Q- lxiv8 #PBS -q mediump
[281]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::
[1184]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::
[2]64#-Q- default #!/bin/ksh
65#-Q- default ##################
66#-Q- default ## DEFAULT HOST ##
67#-Q- default ##################
[815]68#-Q- default #For MPI use, uncomment next line :
[2]69#-Q- default #BATCH_NUM_PROC_TOT=::JobNumProcTot::
70
[373]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
[2]77# IPSL (2006)
78#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
[373]79#
80#**************************************************************
[2]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--------------------------------------------------------------------==
[815]103#D- -1. PLACE FOR USER MODIFICATION
104#D-     - Job Verbosity
105#D-     - PeriodNb
106#D-     - Experience type : DEB(ug), DEV(elopment), RUN
[2]107#D--------------------------------------------------------------------==
108
[815]109#D- Task type (computing or post-processing)
110TaskType=computing
[2]111#D- Increased verbosity (1, 2, 3)
112Verbosity=3
[475]113#D- Experience type : DEB(ug), DEV(elopment), RUN (default)
114JobType=RUN
[2]115#D- Number of execution in one job
[185]116PeriodNb=1
117#-Q- sx9mercure PeriodNb=60
[2]118
119#D-
[815]120#D- --------------------------------------------------------------------------------------------------#
121#D-                          ! OPTIONNAL FEATURES /!\ USE WITH CARE !                                 #
122#D- --------------------------------------------------------------------------------------------------#
[2]123
[475]124
[1096]125#D- Low level debug : to perform lib test checks, stack construction and IO functions instrumentation
[2]126#D- Default=true
[815]127#D-
[1095]128DEBUG_debug=true
[2]129
[988]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-
[1095]134BigBrother=true
[988]135
[2]136#D- Set DEBUG_sys to false to disable output calls of function
[988]137#D- true when JobType=DEB # means DEB(ug)
[815]138#D-
[2]139#DEBUG_sys=false
140
141#D- Define running directory
142#D- Default=${TMPDIR} ie temporary batch directory
[815]143#D-
[154]144#RUN_DIR_PATH=/workdir/or/scratchdir/of/this/machine
[2]145
146#D- Define submit directory
[92]147#D- Default= where you launch qsub (variable from scheduler)
[815]148#D-
[92]149#SUBMIT_DIR=$( pwd )
[2]150
[475]151#D- Define input file root directory
152#D- Default=/IGCMG/common/account/of/this/machine
[815]153#D-
[475]154#R_IN=/u/rech/por/rpor111/DATA
155
[2]156#D- Turn in dry run mode ? (0,1,2,3)
157#D- Default=0
[815]158#D-
[2]159#DRYRUN=3
[815]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-# -------------------------------------------------------------------------------------
[2]174
[475]175#D-
176# --------------------------------------------------------------------------------------------------#
[815]177#D- ! END OF OPTIONNAL FEATURES /!\ DO NOT MODIFY ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING #
[475]178# --------------------------------------------------------------------------------------------------#
[2]179
180#D-
181#D--------------------------------------------------------------------==
[1051]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)
[2]188#D--------------------------------------------------------------------==
189
[815]190#---------------------------------------------------------------------==
[2]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
[832]200#-------
201( ${DEBUG_debug} ) && IGCM_debug_Check
202( ${DEBUG_debug} ) && IGCM_card_Check
203( ${DEBUG_debug} ) && IGCM_date_Check
[2]204
[815]205#--------------------------------------------------------------------==
[2]206
207#-- Resolution FLAG for oasis input
[511]208#RESOL="ORCA2xLMD9671"
[138]209[ -f ${SUBMIT_DIR}/../.resol ] && RESOL=$(head -1 ${SUBMIT_DIR}/../.resol)
[511]210#-- Chemistrie FLAG to ease chemistries configurations management
211#CHEM="AER"
[815]212[ -f ${SUBMIT_DIR}/../.chimie ] && eval $(grep CHEM ${SUBMIT_DIR}/../.chimie)
[2]213
214#D-
215#D--------------------------------------------------------------------==
[1051]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
[1053]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
[1051]238# ------------------------------------------------------------------
239# Activate BigBrother so as to supervise this simulation
240# ------------------------------------------------------------------
[1189]241IGCM_debug_BigBro_Initialize
[1051]242
243#D-
244#D--------------------------------------------------------------------==
[815]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
[1051]252#D--------------------------------------------------------------------==
[2]253IGCM_config_Initialize
254
255# --------------------------------------------------------------------==
[815]256# Define, create and cd RUN_DIR
[2]257# --------------------------------------------------------------------==
[804]258RUN_DIR=${RUN_DIR_PATH}/${config_UserChoices_JobName}.${$}
[2]259IGCM_sys_MkdirWork ${RUN_DIR}
260IGCM_sys_Cd ${RUN_DIR}
261
[436]262# ------------------------------------------------------------------
263# Test if all was right before proceeding further
264# ------------------------------------------------------------------
[432]265IGCM_debug_Verif_Exit
266
[2]267#D-
[815]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---------------------------------------------------------------------==
[2]278IGCM_comp_Initialize
279
[815]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---------------------------------------------------------------------==
[380]287IGCM_config_Check
[2]288
[380]289# ------------------------------------------------------------------
[815]290# Test if all was right before entering the period loop
[380]291# ------------------------------------------------------------------
292IGCM_debug_Verif_Exit
293
[815]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---------------------------------------------------------------------==
[2]300
301Period=1
302
[120]303PeriodContinue=false
304if [ ${Period} -le ${PeriodNb} ]; then
[815]305  PeriodContinue=true
[120]306fi
307while ( ${PeriodContinue} ) ; do
308
[785]309  echo
310  echo "Starting iteration ${Period} / ${PeriodNb}"
[2]311
[785]312  #D-
313  # ------------------------------------------------------------------
[815]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
[785]321  # ------------------------------------------------------------------
322  IGCM_config_PeriodStart
[2]323
[785]324  #D-
325  # ------------------------------------------------------------------
[815]326  #D-   4.2 BEGIN COMPUTATION ONLY IF NEEDED
[785]327  # ------------------------------------------------------------------
328  if [ ${SimulationLengthInDays} -gt ${ExperienceLengthInDays} ] ; then
329    IGCM_debug_Print 1 "break because '${SimulationLengthInDays} -gt ${ExperienceLengthInDays}' : ${SimulationLengthInDays} -gt ${ExperienceLengthInDays}"
330    break ;
331  fi
[2]332
[785]333  #D-
334  # ------------------------------------------------------------------
[815]335  #D-   4.3 CALL OPTIONNAL FUNCTION WITHIN DRIVER
336  #D-       - to set special variables used in lists (Param, Init or Bc).
[785]337  # ------------------------------------------------------------------
338  IGCM_comp_PeriodStart
[2]339
[785]340  #D-
341  # ------------------------------------------------------------------
[815]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.
[785]345  # ------------------------------------------------------------------
346  IGCM_comp_GetInputParametersFiles
[262]347
[785]348  #D-
349  # ------------------------------------------------------------------
[815]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.
[785]355  # ------------------------------------------------------------------
356  IGCM_comp_GetInputInitialStateFiles
[2]357
[785]358  #D-
359  # ------------------------------------------------------------------
[815]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.
[785]363  # ------------------------------------------------------------------
364  IGCM_comp_GetInputBoundaryFiles
[2]365
[785]366  #D-
367  # ------------------------------------------------------------------
[815]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}
[785]372  # ------------------------------------------------------------------
[815]373  IGCM_comp_GetInputSmoothFiles
[2]374
[785]375  #D-
376  # ------------------------------------------------------------------
[815]377  #D-   4.8 GET RESTART FILES
378  #D-       - (restartphy.nc, orca_restart.nc ...)
379  #D-       - READ AND USE BY GCM AT EACH EXECUTION.
[785]380  #D-
[815]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)
[785]384  #D-
[815]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}
[785]388  #D-
[815]389  #D-       - ELSE BRING RESTART FROM ${JobName} IN ${RUN_DIR_PATH}
[785]390  # ------------------------------------------------------------------
391  IGCM_comp_GetInputRestartFiles
[2]392
[785]393  # ------------------------------------------------------------------
[815]394  # Test if all was right before Update
[785]395  # ------------------------------------------------------------------
396  IGCM_debug_Verif_Exit
[2]397
[815]398  #D-
[785]399  # ------------------------------------------------------------------
[815]400  #D-   4.9 ACTIVATE RUNNING ENVIRONNEMENT VARIABLES
[785]401  # ------------------------------------------------------------------
402  IGCM_sys_activ_variables
[2]403
[785]404  #D-
405  # ------------------------------------------------------------------
[815]406  #D-   4.10 UPDATE ParametersFiles
407  #D-        - (.def, namelist ...)
408  #D-        - with current value of (ORCA_NIT00, ORCA_LRSTAR, RAZ_DATE, ...)
[785]409  # ------------------------------------------------------------------
410  IGCM_comp_Update
411
412  # ------------------------------------------------------------------
[815]413  # Test if all was right before execution
[785]414  # ------------------------------------------------------------------
415  IGCM_debug_Verif_Exit
416
417  #D-
[815]418  #D---------------------------------------------------------------------==
419  #D- 5. EXECUTION
420  #D---------------------------------------------------------------------==
[785]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
[2]448    fi
[785]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 "========================================================================"
[2]462
[785]463  echo
464  echo "#######################################"
465  echo "#       DIR AFTER RUN EXECUTION       #"
466  echo "#######################################"
467  echo
468  ls -lrt
[2]469
[785]470  #D-
[815]471  #D---------------------------------------------------------------------==
472  #D- 6. POST EXECUTION OPERATIONS
473  #D---------------------------------------------------------------------==
474
475  #D-
[785]476  # ------------------------------------------------------------------
[815]477  #D-   6.1. DESACTIVATE RUNNING ENVIRONNEMENT VARIABLES
[785]478  # ------------------------------------------------------------------
479  IGCM_sys_desactiv_variables
[2]480
[785]481  #D-
482  # ------------------------------------------------------------------
[815]483  #D-   6.2. SAVE OUTPUTS
484  #D-        - On archive/storage machine
485  #D-        - netcdf outputs, restarts and text files of models
[785]486  # ------------------------------------------------------------------
487  IGCM_comp_Finalize
[2]488
[785]489  # ------------------------------------------------------------------
[815]490  # Test if all was right after Finalize
[785]491  # ------------------------------------------------------------------
492  IGCM_debug_Verif_Exit
[2]493
[785]494  #D-
495  # ------------------------------------------------------------------
[815]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)
[785]499  # ------------------------------------------------------------------
500  IGCM_post_Configure
[2]501
[785]502  #D-
503  # ------------------------------------------------------------------
[815]504  #D-   6.4. SUBMIT POST-PROCESSING
505  #D-        - remote rebuild or/and post-treatment process if necessary
[785]506  # ------------------------------------------------------------------
507  IGCM_post_Submit
[380]508
[785]509  #D-
510  # ------------------------------------------------------------------
[815]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
[785]516  # ------------------------------------------------------------------
517  IGCM_config_PeriodEnd
[2]518
[785]519  echo "Ending iteration ${Period}"
520  (( Period = Period + 1 ))
[2]521
[785]522  # End loop if date end is reached
523  if [ ${SimulationLengthInDays} -ge ${ExperienceLengthInDays} ] ; then
524    break ;
525  fi
[2]526
[785]527  PeriodContinue=false
528  if [ ${Period} -le ${PeriodNb} ]; then
529    PeriodContinue=true
530  fi
531done
[2]532
533#D-
[815]534#D---------------------------------------------------------------------==
535#D- 7. SUBMIT NEXT JOB OR SEND MAIL IF SIMULATION IS OVER.
536#D---------------------------------------------------------------------==
[2]537IGCM_config_Finalize
538
539date
Note: See TracBrowser for help on using the repository browser.