source: trunk/libIGCM/AA_create_multi_se @ 837

Last change on this file since 837 was 837, checked in by labetoulle, 11 years ago

On Curie, ins_job sets up project ID. See #98.

Add

#-Q- curie #MSUB -A ::default_project::

to job headers, to be replaced by proper project ID by ins_job.

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