source: tags/libIGCM_v2.8/AA_create_multi_se @ 1456

Last change on this file since 1456 was 1274, checked in by mafoipsl, 8 years ago

For curie :

  • Add a new option in AA_post_jobs header on curie : "-c ::default_core::" with the number of core reserved.
  • Add 3 options to ins_job :
    • -p projet
    • -q standard/xlarge : with xlarge as default value. except for gencmip6 project
    • -c number of cores (default value is : 4 on standard node or 8 on xlarge node)
  • For batch usage, it's possible to set these options on ins_job command line. See Usage.
  • By default, 3 questions are asked interactively to the user.

With 4 or 8 cores per job we want to limit the number of simultaneous running jobs on one node
and eventually limit SCRATCH congestion.

  • 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: 19.3 KB
Line 
1#-Q- curie ######################
2#-Q- curie ## CURIE   TGCC/CEA ##
3#-Q- curie ######################
4#-Q- curie #MSUB -r MULTISE        # Nom du job
5#-Q- curie #MSUB -eo
6#-Q- curie #MSUB -n 1              # Reservation du processus
7#-Q- curie #MSUB -T 36000          # Limite de temps elapsed du job
8#-Q- curie #MSUB -q ::default_node::
9#-Q- curie #MSUB -c ::default_core::
10#-Q- curie #MSUB -Q normal
11#-Q- curie #MSUB -A ::default_project::
12#-Q- curie set +x
13#-Q- ada #!/bin/ksh
14#-Q- ada #######################
15#-Q- ada ## ADA         IDRIS ##
16#-Q- ada #######################
17#-Q- ada # @ job_type = serial
18#-Q- ada # @ requirements = (Feature == "prepost")
19#-Q- ada # Temps Elapsed max. d'une requete hh:mm:ss
20#-Q- ada # @ wall_clock_limit = 1:00:00
21#-Q- ada # Nom du travail LoadLeveler
22#-Q- ada # @ job_name   = MULTISE
23#-Q- ada # Fichier de sortie standard du travail
24#-Q- ada # @ output     = $(job_name).$(jobid)
25#-Q- ada # Fichier de sortie d'erreur du travail
26#-Q- ada # @ error      =  $(job_name).$(jobid)
27#-Q- ada # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.)
28#-Q- ada # @ notification = error
29#-Q- ada # @ environment  = $DEBUG_debug ; $BigBrother ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $POST_DIR ; $Script_Post_Output ; $MASTER ; $DateBegin ; $PeriodDateEnd ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; wall_clock_limit=$(wall_clock_limit)
30#-Q- ada # @ queue
31#-Q- lxiv8 ######################
32#-Q- lxiv8 ## OBELIX      LSCE ##
33#-Q- lxiv8 ######################
34#-Q- lxiv8 #PBS -N MULTISE
35#-Q- lxiv8 #PBS -m a
36#-Q- lxiv8 #PBS -j oe
37#-Q- lxiv8 #PBS -q medium
38#-Q- lxiv8 #PBS -o MULTISE.$$
39#-Q- lxiv8 #PBS -S /bin/ksh
40#-Q- ifort_CICLAD ######################
41#-Q- ifort_CICLAD ##   CICLAD    IPSL ##
42#-Q- ifort_CICLAD ######################
43#-Q- ifort_CICLAD #PBS -N MULTISE
44#-Q- ifort_CICLAD #PBS -m a
45#-Q- ifort_CICLAD #PBS -j oe
46#-Q- ifort_CICLAD #PBS -q h12
47#-Q- ifort_CICLAD #PBS -S /bin/ksh
48#-Q- default #!/bin/ksh
49#-Q- default ##################
50#-Q- default ## DEFAULT HOST ##
51#-Q- default ##################
52
53#**************************************************************
54# Author: Marie-Alice Foujols
55# Contact: Marie-Alice.Foujols__at__ipsl.jussieu.fr
56# $Revision::                                          $ Revision of last commit
57# $Author::                                            $ Author of last commit
58# $Date::                                              $ Date of last commit
59# IPSL (2006)
60#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
61#
62#**************************************************************
63
64#set -eu
65#set -vx
66
67date
68
69#-Q- ada export OMP_NUM_THREADS=1
70
71#D- Task type (computing or post-processing)
72TaskType=post-processing
73
74########################################################################
75
76#D- Flag to determine if this job in a standalone mode
77#D- Default : value from AA_job if any
78StandAlone=${StandAlone:=true}
79
80#D- Path to libIGCM
81#D- Default : value from AA_job if any
82libIGCM=${libIGCM:=::modipsl::/libIGCM}
83
84#D- Flag to determine atlas job's output directory
85#D- Default : value from libIGCM_post.ksh if any
86POST_DIR=${POST_DIR:=${PBS_O_WORKDIR:=$(pwd)}}
87
88#D- Increased verbosity (1, 2, 3)
89#D- Default : value from AA_job if any
90Verbosity=${Verbosity:=3}
91
92#D- Low level debug : to bypass lib test checks and stack construction
93#D- Default : value from AA_job if any
94DEBUG_debug=${DEBUG_debug:=false}
95
96#D- TEMPORARY Flag to determine atmospheric resolution
97#D- Default : value from atmospheric driver if any
98RESOL_ATM=${RESOL_ATM:=ALL}
99
100#D- Flag to determine surface resolution
101#D- Default : value from surface driver if any
102RESOL_SRF=ALL
103
104#D- Flag to determine surface resolution
105#D- Default : value from surface driver if any
106RESOL_SBG=ALL
107
108#D- TEMPORARY Flag to determine ocean resolution
109#D- Default : value from ocean driver if any
110RESOL_OCE=${RESOL_OCE:=ORCA2}
111
112#D- TEMPORARY Flag to determine ice resolution
113#D- Default : value from ice driver if any
114RESOL_ICE=${RESOL_ICE:=ORCA2}
115
116#D- TEMPORARY Flag to determine marine biogeochemistry resolution
117#D- Default : value from ice driver if any
118RESOL_MBG=${RESOL_MBG:=ORCA2}
119
120########################################################################
121
122. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
123. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
124. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
125#-------
126. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
127. ${libIGCM}/libIGCM_config/libIGCM_config.ksh
128#-------
129IGCM_sys_MkdirWork ${RUN_DIR_PATH}
130IGCM_sys_Cd ${RUN_DIR_PATH}
131#-------
132( ${DEBUG_debug} ) && IGCM_debug_Check
133( ${DEBUG_debug} ) && IGCM_card_Check
134( ${DEBUG_debug} ) && IGCM_date_Check
135
136########################################################################
137
138#set -vx
139
140# ------------------------------------------------------------------
141# Test if all was right before proceeding further
142# ------------------------------------------------------------------
143IGCM_debug_Verif_Exit
144
145if [ ${StandAlone} = true ] ; then
146  CARD_DIR=${SUBMIT_DIR}
147else
148  CARD_DIR=${RUN_DIR_PATH}
149  IGCM_sys_Get_Master ${SUBMIT_DIR}/config.card ${RUN_DIR_PATH}
150  IGCM_sys_Get_Master ${SUBMIT_DIR}/run.card    ${RUN_DIR_PATH}
151  IGCM_sys_Get_Master ${SUBMIT_DIR}/COMP        ${RUN_DIR_PATH}
152  IGCM_sys_Get_Master ${SUBMIT_DIR}/POST        ${RUN_DIR_PATH}
153fi
154
155#==================================
156# First of all
157#
158# Read libIGCM compatibility version in config.card
159# Read UserChoices section
160# Read Ensemble section
161# Read Post section
162# Define all netcdf output directories
163#==================================
164IGCM_config_CommonConfiguration ${CARD_DIR}/config.card
165
166# ------------------------------------------------------------------
167# Activate BigBrother so as to supervise this job
168# ------------------------------------------------------------------
169IGCM_debug_BigBro_Initialize
170
171#==================================
172# Read ListOfComponents section:
173IGCM_card_DefineArrayFromSection   ${CARD_DIR}/config.card ListOfComponents
174
175#==================================
176# Read SeasonalFrequency:
177IGCM_card_DefineArrayFromSection   ${CARD_DIR}/config.card Post
178
179#
180# If option MultiSeasonalFrequency is not found (optionnal) put MultiSeasonalFrequency=50Y
181#
182FoundMultiSeasonal=false
183for option in ${config_Post[*]} ; do
184  if [ ${option} = MultiSeasonalFrequency ] ; then
185    FoundMultiSeasonal=true
186    IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post MultiSeasonalFrequency
187  fi
188done
189if [ ! X${FoundMultiSeasonal} = Xtrue ] ; then
190  config_Post_MultiSeasonalFrequency=50Y
191fi
192#
193IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post SeasonalFrequency
194#
195# Determine period for seasonnal average. Default : value from AA_job if any
196#
197DateBegin=${DateBegin:=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} )}
198#
199PeriodDateEnd=${PeriodDateEnd:=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd} )}
200#
201IGCM_debug_Print 1 "DefineVariableFromOption : Post "
202IGCM_debug_PrintVariables 3 config_Post_SeasonalFrequency
203IGCM_debug_PrintVariables 3 config_Post_MultiSeasonalFrequency
204echo
205
206#
207freq=$( echo ${config_Post_SeasonalFrequency} |  sed -e "s/[yY]//" )
208#
209multifreq=$( echo ${config_Post_MultiSeasonalFrequency} |  sed -e "s/[yY]//" )
210#
211DIR_OUT=SE_${multifreq}Y
212#
213an_multi_fin=$(( $( IGCM_date_ConvertGregorianDateToJulian ${PeriodDateEnd} ) / 1000 ))
214an_multi_deb=$( IGCM_date_YearDigit $(( an_multi_fin - multifreq + 1 )) )
215an_multi_fin=$( IGCM_date_YearDigit ${an_multi_fin} )
216#
217# For each component selected determine which files need post-processing
218#
219for comp in ${config_ListOfComponents[*]} ; do
220  #
221  IGCM_card_DefineArrayFromOption ${CARD_DIR}/config.card ListOfComponents ${comp}
222  eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1
223  #
224  card=${CARD_DIR}/COMP/${compname}.card
225  IGCM_card_DefineArrayFromOption ${card} OutputFiles List
226  #
227  ListFilesName=${compname}_OutputFiles_List
228  eval FileName0=\${${ListFilesName}[0]} > /dev/null 2>&1
229  #
230  if [ X${FileName0} != X${NULL_STR} ] ; then
231    #
232    # INITIALISATION
233    #
234    eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1
235    typeset i=2
236    #
237    until [ $i -gt $NbFiles ]; do
238      #
239      eval flag_post=\${${ListFilesName}[$i]} > /dev/null 2>&1
240      #
241      if [ X${flag_post} != XNONE ] ; then
242        #
243        # Check if seasonal is required for this file
244        #
245        IGCM_card_DefineArrayFromSection ${card} ${flag_post}
246        #
247        # Seasonal case : If option Seasonal is not found (old cards) put SEASONAL ON by default
248        #
249        # variable option allready typeset above
250        for option in $( eval echo \${${compname}_${flag_post}[*]} ) ; do
251          if [ ${option} = Seasonal ] ; then
252            FoundSeasonal=true
253            IGCM_card_DefineVariableFromOption ${card} ${flag_post} Seasonal
254          fi
255        done
256        #
257        if [ ! X${FoundSeasonal} = Xtrue ] ; then
258          eval ${compname}_${flag_post}_Seasonal=ON
259        fi
260        #
261        if [ ! X$( eval echo \${${compname}_${flag_post}_Seasonal} ) = XON ] ; then
262          (( i=i+3 ))
263          continue
264        fi
265        #
266        # CREATE LIST
267        #
268        FILE=$( echo ${flag_post} | awk "-FPost_" '{print $2}' )
269        #
270        DIRECTORY=${R_SAVE}/${comp}/Analyse/SE
271        #
272        MULTI_DIRECTORY=${R_SAVE}/${comp}/Analyse/${DIR_OUT}
273        #
274        TestedFile=${config_UserChoices_JobName}_SE_${an_multi_deb}_${an_multi_fin}_${FILE}.nc
275        #
276        IGCM_sys_TestFileArchive ${MULTI_DIRECTORY}/${TestedFile}
277        if [ ! $? = 0 ] ; then
278          eval set +A LISTE_FILE_${comp} \$\{LISTE_FILE_${comp}[*]} ${FILE}
279        fi
280      fi
281      (( i=i+3 ))
282    done # until [ $i -eq $NbFiles ]
283  fi
284done         # for comp
285
286for comp in ${config_ListOfComponents[*]} ; do
287  #
288  eval R_OUT_${comp}=${R_SAVE}/${comp}
289  #
290  i=0
291  for file in $( eval echo \${LISTE_FILE_${comp}[*]} ); do
292    #
293    RESULT_MULTI_SE=${config_UserChoices_JobName}_SE_${an_multi_deb}_${an_multi_fin}_${file}.nc
294    # Do not redo an existing SE
295    IGCM_sys_TestFileArchive ${R_SAVE}/${comp}/Analyse/${DIR_OUT}/${RESULT_MULTI_SE}
296    if [ $? = 0 ] ; then
297      continue
298    fi
299    #
300    eval file_path=\${R_OUT_${comp}}/Analyse/SE/
301    #
302    (( an = an_multi_deb ))
303    # Initialize array
304    unset liste_file_se
305    unset liste_file_se_tmp
306    while [ ${an} -le ${an_multi_fin} ] ; do
307      #
308      an_deb=$(printf "%04i\n" ${an} )
309      #
310      (( an_fin = an_deb + freq - 1 ))
311      date=${an_deb}_${an_fin}
312      #
313      liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_SE_${date}_${file}.nc
314      liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_SE_${date}_${file}.nc
315      (( an = an + freq ))
316    done
317    #
318    IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH}
319    IGCM_debug_Verif_Exit
320    # Search of common list of variables to be treated
321    nbfile=0
322    for file_common_var in ${liste_file_se_tmp[*]} ; do
323      ncdump -h ${file_common_var} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> tmpfile_ncra
324      (( nbfile = nbfile + 1 ))
325    done
326    list_var_final_ncra=`cat tmpfile_ncra | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','`
327    IGCM_sys_Rm tmpfile_ncra
328
329    # detect time counter : time or time_counter ie unlimited variable
330    var_unlim=$(ncdump -h ${liste_file_se_tmp[1]}|grep UNLIMITED|awk '{print $1}')
331
332    for mois in  01 02 03 04 05 06 07 08 09 10 11 12 ; do
333      #
334      (( nb = ${mois} - 1 ))
335      #
336      OUT_SE[${nb}]=${config_UserChoices_JobName}_SE${mois}_${an_deb}_${an_fin}_${file}.nc
337      IGCM_sys_ncra -O -v ${list_var_final_ncra} -d ${var_unlim},${nb},,12 ${liste_file_se_tmp[*]} ${OUT_SE[${nb}]}
338    done
339    IGCM_sys_Rm ${liste_file_se_tmp[*]}
340    #
341
342    # Search of common list of variables to be treated
343    nbfile=0
344    for file_common_var in ${OUT_SE[*]} ; do
345      ncdump -h ${file_common_var} | grep -E 'float|double' | cut -f 1 -d '(' | cut -f 2 -d ' ' >> tmpfile_ncrcat
346      (( nbfile = nbfile + 1 ))
347    done
348    list_var_final_ncrcat=`cat tmpfile_ncrcat | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','`
349    IGCM_sys_Rm tmpfile_ncrcat
350
351    IGCM_sys_ncrcat -O -v ${list_var_final_ncrcat} ${OUT_SE[*]} ${RESULT_MULTI_SE}
352    #
353    IGCM_sys_Rm ${OUT_SE[*]}
354
355    # Put correct climatological axis following calendar
356    case ${config_UserChoices_CalendarType} in
357      360d|360_day)
358      # 360 days
359        ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15, 45, 75, 105, 135, 165, 195, 225, 255, 285, 315, 345.} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 30, 30, 60, 60, 90, 90, 120, 120, 150, 150, 180, 180, 210, 210, 240, 240, 270, 270, 300, 300, 330, 330, 360.} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"360_day\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'"
360        ;;
361      noleap|365_day)
362      # 365 days
363        ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15.5, 45, 74.5, 105, 135.5, 166, 196.5, 227.5, 258, 288.5, 319, 349.5} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 31, 31, 59, 59, 90, 90, 120, 120, 151, 151, 181, 181, 212, 212, 243, 243, 273, 273, 304, 304, 334, 334, 365.} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"365_day\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'"
364        ;;
365      all_leap|366_day)
366      # 366 days
367        ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15.5, 45.5, 75.5, 106, 136.5, 167, 197.5, 228.5, 259, 289.5, 320, 350.5} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 31, 31, 60, 60, 91, 91, 121, 121, 152, 152, 182, 182, 213, 213, 244, 244, 274, 274, 305, 305, 335, 335, 366.} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"366_day\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'"
368        ;;
369      leap|gregorian|standard)
370      # 365.2425 days
371        ncap2cmd="'defdim(\"tbnds\",2) ; ${var_unlim}[${var_unlim}]={15.5, 45.12125, 74.7425, 105.2425, 135.7425, 166.2425, 196.7425, 227.7425, 258.2425, 288.7425, 319.2425, 349.7425} ; ${var_unlim}_bnds[${var_unlim},tbnds]={0, 31, 31, 59.2425, 59.2425, 90.2425, 90.2425, 120.2425, 120.2425, 151.2425, 151.2425, 181.2425, 181.2425, 212.2425, 212.2425, 243.2425, 243.2425, 273.2425, 273.2425, 304.2425, 304.2425, 334.2425, 334.2425, 365.2425} ; ${var_unlim}@units=\"days since 0000-01-01 00:00:00\" ; ${var_unlim}@time_origin=\"01-JAN-0000 00:00:00\" ; ${var_unlim}@calendar=\"gregorian\" ; ${var_unlim}@bounds=\"${var_unlim}_bnds\"'"
372        ;;
373    esac
374    eval IGCM_sys_ncap2 -Oh -s $ncap2cmd ${RESULT_MULTI_SE} tmp.nc
375    IGCM_sys_Rm ${RESULT_MULTI_SE}
376    IGCM_sys_Mv tmp.nc ${RESULT_MULTI_SE}
377    #
378    eval IGCM_sys_Put_Out ${RESULT_MULTI_SE} \${R_OUT_${comp}}/Analyse/${DIR_OUT}/${RESULT_MULTI_SE}
379    IGCM_sys_Rm ${RESULT_MULTI_SE}
380    #
381  done
382done
383
384# DODS copy
385if [ X${config_Post_DodsCopy} = XTRUE ]  ; then
386  for comp in ${config_ListOfComponents[*]} ; do
387    IGCM_sys_TestDirArchive ${R_SAVE}/${comp}/Analyse/${DIR_OUT}
388    [ $? = 0 ] && IGCM_sys_Put_Dods ${comp}/Analyse/${DIR_OUT}
389  done
390fi
391
392# Temporal coverage id for atlas
393YEARS=${an_multi_deb}_${an_multi_fin}
394
395export DEBUG_debug; export BigBrother ; export libIGCM; export SUBMIT_DIR; export POST_DIR; export Script_Output ;
396export StandAlone ; export RESOL_ATM; export RESOL_OCE ; export RESOL_ICE ; export RESOL_MBG ; export RESOL_SRF ;
397export RESOL_SBG ; export YEARS; export DIR_OUT
398listVarEnv="DEBUG_debug,BigBrother,libIGCM,SUBMIT_DIR,POST_DIR,Script_Post_Output,StandAlone,RESOL_ATM,RESOL_OCE,RESOL_ICE,RESOL_MBG,RESOL_SRF,RESOL_SBG,YEARS,DIR_OUT"
399export listVarEnv;
400
401#D-
402# --------------------------------------------------------------------
403#D- Test if all was right before ATLAS
404# --------------------------------------------------------------------
405IGCM_debug_Verif_Exit
406
407if [ ${config_UserChoices_TagName} = "IPSLCM4_v1_OASIS3" ] || \
408   [ ${config_UserChoices_TagName} = "IPSLCM4_v2" ]        || \
409   [ ${config_UserChoices_TagName} = "IPSL_ESM_V1" ] ; then
410  #
411  export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ;
412  IGCM_sys_QsubPost atlas_ORCHIDEE                          ;
413  export Script_Post_Output=atlas_LDMZ.${PeriodDateEnd}     ;
414  IGCM_sys_QsubPost atlas_LMDZ                              ;
415  export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ;
416  IGCM_sys_QsubPost atlas_ORCA_LIM                          ;
417  export Script_Post_Output=additionnal.${PeriodDateEnd}    ;
418  IGCM_sys_QsubPost additionnal                             ;
419  #
420elif [ ${config_UserChoices_TagName} = "IPSLCM5" ]         || \
421     [ ${config_UserChoices_TagName} = "IPSLCM5A" ]        || \
422     [ ${config_UserChoices_TagName} = "IPSLCM5B" ]        || \
423     [ ${config_UserChoices_TagName} = "IPSLCM5A-MR" ]     || \
424     [ ${config_UserChoices_TagName} = "IPSLCM6" ] ; then
425  export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ;
426  IGCM_sys_QsubPost atlas_ORCHIDEE                          ;
427  export Script_Post_Output=atlas_LDMZ.${PeriodDateEnd}     ;
428  IGCM_sys_QsubPost atlas_LMDZ                              ;
429  export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ;
430  IGCM_sys_QsubPost atlas_ORCA_LIM                          ;
431  export Script_Post_Output=atlas_PISCES.${PeriodDateEnd}   ;
432  IGCM_sys_QsubPost atlas_PISCES                            ;
433  #
434elif [ ${config_UserChoices_TagName} = "LMDZ4OR" ]         || \
435     [ ${config_UserChoices_TagName} = "LMDZOR" ]          || \
436     [ ${config_UserChoices_TagName} = "LMDZ4OR_v2" ] ; then
437  #
438  export Script_Post_Output=atlas_LDMZ.${PeriodDateEnd}     ;
439  IGCM_sys_QsubPost atlas_LMDZ                              ;
440  export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ;
441  IGCM_sys_QsubPost atlas_ORCHIDEE                          ;
442  #
443elif [ ${config_UserChoices_TagName} = "LMDZ" ] ; then
444  #
445  export Script_Post_Output=atlas_LDMZ.${PeriodDateEnd}     ;
446  IGCM_sys_QsubPost atlas_LMDZ                              ;
447  #
448elif [ ${config_UserChoices_TagName} = "OL" ]              || \
449     [ ${config_UserChoices_TagName} = "OL2" ] ; then
450  #
451  export Script_Post_Output=atlas_ORCHIDEE.${PeriodDateEnd} ;
452  IGCM_sys_QsubPost atlas_ORCHIDEE                          ;
453  #
454elif [ ${config_UserChoices_TagName} = "ORCA2_LIM" ]       || \
455     [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ]      || \
456     [ ${config_UserChoices_TagName} = "ORCA2_LIM3" ] ; then
457  #
458  export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ;
459  IGCM_sys_QsubPost atlas_ORCA_LIM                          ;
460  #
461elif [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ] || \
462     [ ${config_UserChoices_TagName} = "ORCA2_LIM3_PISCES" ] ; then
463  #
464  export Script_Post_Output=atlas_ORCA_LIM.${PeriodDateEnd} ;
465  IGCM_sys_QsubPost atlas_ORCA_LIM                          ;
466  export Script_Post_Output=atlas_PISCES.${PeriodDateEnd}   ;
467  IGCM_sys_QsubPost atlas_PISCES                            ;
468  #
469elif [ ${config_UserChoices_TagName} = "ORCA2_OFF_PISCES" ] ; then
470  #
471  export Script_Post_Output=atlas_PISCES.${PeriodDateEnd}   ;
472  IGCM_sys_QsubPost atlas_PISCES                            ;
473  #
474fi
475
476# Clean RUN_DIR_PATH (necessary for cesium and titane only)
477IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH}
478
479# ------------------------------------------------------------------
480# Finalize BigBrother to inform that the jobs end
481# ------------------------------------------------------------------
482IGCM_debug_BigBro_Finalize
Note: See TracBrowser for help on using the repository browser.