source: trunk/libIGCM/AA_job @ 1184

Last change on this file since 1184 was 1184, checked in by sdipsl, 9 years ago

Add ciclad to the system. Episode II

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