source: trunk/libIGCM/AA_create_multi_se @ 372

Last change on this file since 372 was 372, checked in by brocksce, 14 years ago

Corrected some bad values (please be carrefull when copy lines from mouse !)
Add call to IGCM_sys_ncap

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