source: trunk/libIGCM/AA_create_multi_se @ 1189

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