source: trunk/libIGCM/AA_create_multi_se @ 835

Last change on this file since 835 was 832, checked in by sdipsl, 11 years ago
  • Trivial changes to accomodate new_libIGCM function defined here /ccc/cont003/home/dsm/p86mart/.bash_alias (ksh-->bash)

She transforms every cp and rm by IGCM_sys_Cp and IGCM_sys_Rm within IGCM_debug_Check. So we need to source sys before calling it.

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