source: trunk/libIGCM/AA_job @ 1314

Last change on this file since 1314 was 1314, checked in by jgipsl, 8 years ago

Adapted libIGCM to run at climserv (IPSL cluster at Polytechinque). The same libIGCM_sys as for ciclad is used but some changes for the paths are done inside.

For ciclad the variable CENTER change to IPSL-ciclad to be different from the one used for climserv (IPSL-climserv).

The running queue at ciclad also changed in AA_job and some other jobs. Now the default queue is used but the old is kept in comment. This is done to have the same heading running at ciclad and climserv.

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