source: trunk/libIGCM/AA_create_multi_se @ 903

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