source: trunk/libIGCM/AA_create_multi_se @ 373

Last change on this file since 373 was 373, checked in by sdipsl, 14 years ago

Remove libIGCM_sys_claude.ksh and libIGCM_sys_calculo.ksh
Update/homogenize all headers usgin the new fixed-length keyword syntax regarding properties keywords
$Rev:: 13 i $: Revision of last commit
$Author:: harry $: Author of last commit
$Date:: 2006-03-15 02:33:03 -0500 (Wed, 15 Mar 2006) $: Date of last commit
Add / update original author and contact when missing

  • Property svn:keywords set to Revision Author Date
File size: 19.0 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#**************************************************************
99# Author: Marie-Alice Foujols
100# Contact: Marie-Alice.Foujols__at__ipsl.jussieu.fr
101# $Revision::                                          $ Revision of last commit
102# $Author::                                            $ Author of last commit
103# $Date::                                              $ Date of last commit
104# IPSL (2006)
105#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
106#
107#**************************************************************
108
109#set -eu
110#set -vx
111
112date
113
114#-Q- sx8brodie export OMP_NUM_THREADS=1
115#-Q- aix6 export OMP_NUM_THREADS=1
116
117########################################################################
118
119#D- Flag to determine if this job in a standalone mode
120#D- Default : value from AA_job if any
121StandAlone=${StandAlone:=true}
122
123#D- Low level debug : to bypass lib test checks and stack construction
124#D- Default : value from AA_job if any
125libIGCM=${libIGCM:=::modipsl::/libIGCM}
126# WARNING for StandAlone used : To run this script on some machine,
127# you must check MirrorlibIGCM variable in sys library.
128# If this variable is true, you must use libIGCM_POST path instead
129# of your running libIGCM directory.
130
131#D- Flag to determine atlas job's output directory
132#D- Default : value from libIGCM_post.ksh if any
133POST_DIR=${POST_DIR:=${PBS_O_WORKDIR:=$(pwd)}}
134
135#D- Increased verbosity (1, 2, 3)
136#D- Default : value from AA_job if any
137Verbosity=${Verbosity:=3}
138
139#D- Low level debug : to bypass lib test checks and stack construction
140#D- Default : value from AA_job if any
141DEBUG_debug=${DEBUG_debug:=false}
142
143#D- TEMPORARY Flag to determine atmospheric resolution
144#D- Default : value from atmospheric driver if any
145RESOL_ATM=${RESOL_ATM:=ALL}
146
147#D- Flag to determine surface resolution
148#D- Default : value from surface driver if any
149RESOL_SRF=ALL
150
151#D- Flag to determine surface resolution
152#D- Default : value from surface driver if any
153RESOL_SBG=ALL
154
155#D- TEMPORARY Flag to determine ocean resolution
156#D- Default : value from ocean driver if any
157RESOL_OCE=${RESOL_OCE:=ORCA2}
158
159#D- TEMPORARY Flag to determine ice resolution
160#D- Default : value from ice driver if any
161RESOL_ICE=${RESOL_ICE:=ORCA2}
162
163#D- TEMPORARY Flag to determine marine biogeochemistry resolution
164#D- Default : value from ice driver if any
165RESOL_MBG=${RESOL_MBG:=ORCA2}
166
167########################################################################
168
169. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
170      ( ${DEBUG_debug} ) && IGCM_debug_Check
171. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
172     ( ${DEBUG_debug} ) && IGCM_card_Check
173. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
174     ( ${DEBUG_debug} ) && IGCM_date_Check
175#-------
176. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
177
178########################################################################
179
180#set -vx
181
182IGCM_sys_MkdirWork ${RUN_DIR_PATH}
183IGCM_sys_Cd ${RUN_DIR_PATH}
184
185if [ ${StandAlone} = true ] ; then
186    CARD_DIR=${SUBMIT_DIR}
187else
188    CARD_DIR=${RUN_DIR_PATH}/$( basename ${SUBMIT_DIR} )
189    IGCM_sys_Get_Master ${SUBMIT_DIR} ${RUN_DIR_PATH}
190fi
191
192#
193# First of all
194#
195IGCM_card_DefineArrayFromSection   ${CARD_DIR}/config.card UserChoices
196typeset option
197for option in ${config_UserChoices[*]} ; do
198    IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option}
199done
200#
201echo
202IGCM_debug_PrintVariables 3 config_UserChoices_TagName
203IGCM_debug_PrintVariables 3 config_UserChoices_SpaceName
204IGCM_debug_PrintVariables 3 config_UserChoices_ExperimentName
205IGCM_debug_PrintVariables 3 config_UserChoices_CalendarType
206IGCM_debug_PrintVariables 3 config_UserChoices_DateBegin
207IGCM_debug_PrintVariables 3 config_UserChoices_DateEnd
208IGCM_debug_PrintVariables 3 config_UserChoices_PeriodLength
209echo
210
211#==================================
212#R_SAVE : Job output directory
213if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then
214    FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' )
215    R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName}
216    R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName}
217else
218    R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName}
219    R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName}
220fi
221#
222IGCM_card_DefineArrayFromSection   ${CARD_DIR}/config.card ListOfComponents
223
224IGCM_card_DefineArrayFromSection   ${CARD_DIR}/config.card Post
225
226#
227# If option MultiSeasonalFrequency is not found (optionnal) put MultiSeasonalFrequency=50Y
228#
229FoundMultiSeasonal=false
230for option in ${config_Post[*]} ; do
231    if [ ${option} = MultiSeasonalFrequency ] ; then
232        FoundMultiSeasonal=true
233        IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post MultiSeasonalFrequency
234    fi
235done
236if [ ! X${FoundMultiSeasonal} = Xtrue ] ; then
237    config_Post_MultiSeasonalFrequency=50Y
238fi
239#
240IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card Post SeasonalFrequency
241#
242# Determine period for seasonnal average. Default : value from AA_job if any
243#
244DateBegin=${DateBegin:=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} )}
245#
246PeriodDateEnd=${PeriodDateEnd:=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd} )}
247#
248IGCM_debug_Print 1 "DefineVariableFromOption : Post "
249IGCM_debug_PrintVariables 3 config_Post_SeasonalFrequency
250IGCM_debug_PrintVariables 3 config_Post_MultiSeasonalFrequency
251echo
252
253#
254freq=$( echo ${config_Post_SeasonalFrequency} |  sed -e "s/[yY]//" )
255#
256multifreq=$( echo ${config_Post_MultiSeasonalFrequency} |  sed -e "s/[yY]//" )
257#
258DIR_OUT=SE_${multifreq}Y
259#
260an_multi_fin=$(( $( IGCM_date_ConvertGregorianDateToJulian ${PeriodDateEnd} ) / 1000 ))
261an_multi_deb=$( IGCM_date_YearDigit $(( an_multi_fin - multifreq + 1 )) )
262an_multi_fin=$( IGCM_date_YearDigit ${an_multi_fin} )
263#
264# For each component selected determine which files need post-processing
265#
266for comp in ${config_ListOfComponents[*]} ; do
267    #
268    IGCM_card_DefineArrayFromOption ${CARD_DIR}/config.card ListOfComponents ${comp}
269    eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1
270    #
271    card=${CARD_DIR}/COMP/${compname}.card
272    IGCM_card_DefineArrayFromOption ${card} OutputFiles List
273    #
274    ListFilesName=${compname}_OutputFiles_List
275    eval FileName0=\${${ListFilesName}[0]} > /dev/null 2>&1
276    #
277    if [ X${FileName0} != X${NULL_STR} ] ; then
278        #
279        # INITIALISATION
280        #
281        eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1
282        typeset i=2
283        #
284        until [ $i -gt $NbFiles ]; do
285            #
286            eval flag_post=\${${ListFilesName}[$i]} > /dev/null 2>&1
287            #
288            if [ X${flag_post} != XNONE ] ; then
289                #
290                # Check if seasonal is required for this file
291                #
292                IGCM_card_DefineArrayFromSection ${card} ${flag_post}
293                #
294                # Seasonal case : If option Seasonal is not found (old cards) put SEASONAL ON by default
295                #
296                # variable option allready typeset above
297                for option in $( eval echo \${${compname}_${flag_post}[*]} ) ; do
298                    if [ ${option} = Seasonal ] ; then
299                        FoundSeasonal=true
300                        IGCM_card_DefineVariableFromOption ${card} ${flag_post} Seasonal
301                    fi
302                done
303                #
304                if [ ! X${FoundSeasonal} = Xtrue ] ; then
305                    eval ${compname}_${flag_post}_Seasonal=ON
306                fi
307                #
308                if [ ! X$( eval echo \${${compname}_${flag_post}_Seasonal} ) = XON ] ; then
309                    (( i=i+3 ))
310                    continue
311                fi
312                #
313                # CREATE LIST
314                #
315                FILE=$( echo ${flag_post} | awk "-FPost_" '{print $2}' )
316                #
317                DIRECTORY=${R_SAVE}/${comp}/Analyse/SE
318                #
319                MULTI_DIRECTORY=${R_SAVE}/${comp}/Analyse/${DIR_OUT}
320                #
321                TestedFile=${config_UserChoices_JobName}_SE_${an_multi_deb}_${an_multi_fin}_${FILE}.nc
322                #
323                IGCM_sys_TestFileArchive ${MULTI_DIRECTORY}/${TestedFile}
324                if [ ! $? = 0 ] ; then
325                    eval set +A LISTE_FILE_${comp} \$\{LISTE_FILE_${comp}[*]} ${FILE}
326                fi
327            fi
328            (( i=i+3 ))
329        done # until [ $i -eq $NbFiles ]
330    fi
331done         # for comp
332
333for comp in ${config_ListOfComponents[*]} ; do
334    #
335    eval R_OUT_${comp}=${R_SAVE}/${comp}
336    #
337    i=0
338    for file in $( eval echo \${LISTE_FILE_${comp}[*]} ); do
339        #
340        RESULT_MULTI_SE=${config_UserChoices_JobName}_SE_${an_multi_deb}_${an_multi_fin}_${file}.nc
341        # Do not redo an existing SE
342        IGCM_sys_TestFileArchive ${R_SAVE}/${comp}/Analyse/${DIR_OUT}/${RESULT_MULTI_SE}
343        if [ $? = 0 ] ; then
344            continue
345        fi
346        #
347        eval file_path=\${R_OUT_${comp}}/Analyse/SE/
348        #
349        (( an = an_multi_deb ))
350        # Initialize array
351        #set -A liste_file_se
352        #set -A liste_file_se_tmp
353        unset liste_file_se
354        unset liste_file_se_tmp
355        while [ ${an} -le ${an_multi_fin} ] ; do
356            #
357            an_deb=$(printf "%04i\n" ${an} )
358            #
359            (( an_fin = an_deb + freq - 1 ))
360            date=${an_deb}_${an_fin}
361            #set +A liste_file_se ${liste_file_se[*]} ${file_path}${config_UserChoices_JobName}_${date}_${file}.nc
362            #set +A liste_file_se_tmp ${liste_file_se_tmp[*]} ${config_UserChoices_JobName}_${date}_${file}.nc
363            liste_file_se[${#liste_file_se[*]}]=${file_path}${config_UserChoices_JobName}_SE_${date}_${file}.nc
364            liste_file_se_tmp[${#liste_file_se_tmp[*]}]=${config_UserChoices_JobName}_SE_${date}_${file}.nc
365            (( an = an + freq ))
366        done
367        #
368        IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH}
369        eval ExitFlag=false
370        IGCM_debug_Verif_Exit_Post
371        # Search of common list of variables to be treated
372        nbfile=0
373        for file_common_var in ${liste_file_se_tmp[*]} ; do
374            ncks -m ${file_common_var} | grep '# dim. =' | cut -d ':' -f 1 >> tmpfile_ncra
375            (( nbfile = nbfile + 1 ))
376        done
377        list_var_final_ncra=`cat tmpfile_ncra | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','`
378        IGCM_sys_Rm tmpfile_ncra
379
380        # detect time counter : time or time_counter ie unlimited variable
381        ncdump -h ${liste_file_se_tmp[1]}
382        var_unlim=$(ncdump -h ${liste_file_se_tmp[1]}|grep UNLIMITED| cut -d ' ' -f 1)
383
384        for mois in  01 02 03 04 05 06 07 08 09 10 11 12 ; do
385        #
386            (( nb = ${mois} - 1 ))
387        #
388            OUT_SE[${nb}]=${config_UserChoices_JobName}_SE${mois}_${an_deb}_${an_fin}_${file}.nc
389            IGCM_sys_ncra -O -v ${list_var_final_ncra} -d ${var_unlim},${nb},,12 ${liste_file_se_tmp[*]} ${OUT_SE[${nb}]}
390        done
391        IGCM_sys_Rm ${liste_file_se_tmp[*]}
392        eval ExitFlag=false
393        IGCM_debug_Verif_Exit_Post
394        #
395
396        # Search of common list of variables to be treated
397        nbfile=0
398        for file_common_var in ${OUT_SE[*]} ; do
399           ncks -m ${file_common_var} | grep '# dim. =' | cut -d ':' -f 1 >> tmpfile_ncrcat
400           (( nbfile = nbfile + 1 ))
401        done
402        list_var_final_ncrcat=`cat tmpfile_ncrcat | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 == nbfile) {print $2}}' | paste -s -d ','`
403        IGCM_sys_Rm tmpfile_ncrcat
404
405        IGCM_sys_ncrcat -O -v ${list_var_final_ncrcat} ${OUT_SE[*]} ${RESULT_MULTI_SE}
406        #
407        IGCM_sys_Rm ${OUT_SE[*]}
408        #
409        if [ ${var_unlim} = "time_counter" ] ; then
410                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
411                IGCM_sys_Rm ${RESULT_MULTI_SE}
412                IGCM_sys_Mv tmp.nc ${RESULT_MULTI_SE}
413        fi
414        #
415        eval IGCM_sys_Put_Out ${RESULT_MULTI_SE} \${R_OUT_${comp}}/Analyse/${DIR_OUT}/${RESULT_MULTI_SE}
416        IGCM_sys_Rm ${RESULT_MULTI_SE}
417        #
418        eval ExitFlag=false
419        IGCM_debug_Verif_Exit_Post
420    done
421done
422
423# DODS copy
424for comp in ${config_ListOfComponents[*]} ; do
425    IGCM_sys_TestDirArchive ${R_SAVE}/${comp}/Analyse/${DIR_OUT}
426    [ $? = 0 ] && IGCM_sys_Put_Dods ${comp}/Analyse/${DIR_OUT}
427done
428
429YEARS=${an_multi_deb}_${an_multi_fin}
430
431export POST_DIR; export SUBMIT_DIR; export libIGCM; export R_INIT; export R_BC; export StandAlone
432export RESOL_ATM; export RESOL_OCE ; export RESOL_ICE ; export RESOL_MBG ; export RESOL_SRF ; export RESOL_SBG
433export R_SAVE; export config_UserChoices_JobName; export config_UserChoices_TagName; export YEARS; export DIR_OUT
434listVarEnv="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"
435export listVarEnv;
436
437#D-
438# --------------------------------------------------------------------
439#D- Test if all was right before ATLAS
440# --------------------------------------------------------------------
441IGCM_debug_Verif_Exit_Post
442
443if [ ${config_UserChoices_TagName} = "IPSLCM4_v1_OASIS3" ] || \
444   [ ${config_UserChoices_TagName} = "IPSLCM4_v2" ]        || \
445   [ ${config_UserChoices_TagName} = "IPSL_ESM_V1" ] ; then
446    #
447    IGCM_sys_QsubPost atlas_ORCHIDEE     ;
448    IGCM_sys_QsubPost atlas_LMDZ         ;
449    IGCM_sys_QsubPost atlas_ORCA_LIM     ;
450    IGCM_sys_QsubPost additionnal        ;
451    #
452elif [ ${config_UserChoices_TagName} = "IPSLCM5" ]  || \
453     [ ${config_UserChoices_TagName} = "IPSLCM5A" ] || \
454     [ ${config_UserChoices_TagName} = "IPSLCM5A-MR" ] ; then
455    IGCM_sys_QsubPost atlas_ORCHIDEE     ;
456    IGCM_sys_QsubPost atlas_LMDZ         ;
457    IGCM_sys_QsubPost atlas_ORCA_LIM     ;
458    IGCM_sys_QsubPost atlas_PISCES       ;
459    #
460elif [ ${config_UserChoices_TagName} = "LMDZ4OR" ]  || \
461     [ ${config_UserChoices_TagName} = "LMDZOR" ]   || \
462     [ ${config_UserChoices_TagName} = "LMDZ4OR_v2" ] ; then
463    #
464    IGCM_sys_QsubPost atlas_LMDZ         ;
465    IGCM_sys_QsubPost atlas_ORCHIDEE     ;
466    #
467elif [ ${config_UserChoices_TagName} = "LMDZ" ] ; then
468    #
469    IGCM_sys_QsubPost atlas_LMDZ         ;
470    #
471elif [ ${config_UserChoices_TagName} = "OL" ]      || \
472     [ ${config_UserChoices_TagName} = "OL2" ] ; then
473    #
474    IGCM_sys_QsubPost atlas_ORCHIDEE     ;
475    #
476elif [ ${config_UserChoices_TagName} = "ORCA2_LIM" ]       ||
477     [ ${config_UserChoices_TagName} = "ORCA2_LIM2" ] ; then
478    #
479    IGCM_sys_QsubPost atlas_ORCA_LIM     ;
480#    IGCM_sys_QsubPost additionnal        ;
481elif [ ${config_UserChoices_TagName} = "ORCA2_LIM2_PISCES" ]  ; then
482    #
483    IGCM_sys_QsubPost atlas_ORCA_LIM     ;
484    IGCM_sys_QsubPost atlas_PISCES       ;
485#    IGCM_sys_QsubPost additionnal        ;
486elif [ ${config_UserChoices_TagName} = "ORCA2_OFF_PISCES" ]  ; then
487    #
488    IGCM_sys_QsubPost atlas_PISCES       ;
489    #
490fi
491
492# Clean RUN_DIR_PATH (necessary for cesium)
493IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH}
Note: See TracBrowser for help on using the repository browser.