source: tags/libIGCM_v1_4/AA_rebuild_fromWorkdir

Last change on this file was 178, checked in by cetlod, 15 years ago

Add RESOL_MBG (Marine BioGeochemistry?) for use with TOP component

File size: 6.2 KB
Line 
1#-Q- platine #!/usr/bin/ksh
2#-Q- platine ###################
3#-Q- platine ## PLATINE   CEA ##
4#-Q- platine ###################
5#-Q- platine #BSUB -J REBUILDWRK             # Nom du job
6#-Q- platine #BSUB -N                        # message a la fin du job
7#-Q- platine #BSUB -n 1                      # reservation des processeurs pour le job
8#-Q- platine #BSUB -W 4:00                   # Limite temps
9#-Q- platine #BSUB -q post                   # Passage en queue post
10#-Q- sx8brodie #!/bin/ksh
11#-Q- sx8brodie #######################
12#-Q- sx8brodie ## SX8BRODIE   IDRIS ##
13#-Q- sx8brodie #######################
14#-Q- sx8brodie # Temps Elapsed max. d'une requete hh:mm:ss
15#-Q- sx8brodie # @ wall_clock_limit = 10:00:00
16#-Q- sx8brodie # Nom du travail LoadLeveler
17#-Q- sx8brodie # @ job_name   = REBUILDWRK
18#-Q- sx8brodie # Fichier de sortie standard du travail       
19#-Q- sx8brodie # @ output     = $(job_name).$(jobid)
20#-Q- sx8brodie # Fichier de sortie d'erreur du travail
21#-Q- sx8brodie # @ error      =  $(job_name).$(jobid)
22#-Q- sx8brodie # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.)
23#-Q- sx8brodie # @ notification = error
24#-Q- sx8brodie # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $DateBegin ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $MASTER
25#-Q- sx8brodie # @ queue
26#-Q- aix6 #!/bin/ksh
27#-Q- aix6 #######################
28#-Q- aix6 ##   VARGAS   IDRIS  ##
29#-Q- aix6 #######################
30#-Q- aix6 # @ class = archive
31#-Q- aix6 # Temps Elapsed max. d'une requete hh:mm:ss
32#-Q- aix6 # @ wall_clock_limit = 20:00:00
33#-Q- aix6 # Nom du travail LoadLeveler
34#-Q- aix6 # @ job_name   = REBUILDWRK
35#-Q- aix6 # Fichier de sortie standard du travail
36#-Q- aix6 # @ output     = $(job_name).$(jobid)
37#-Q- aix6 # Fichier de sortie d'erreur du travail
38#-Q- aix6 # @ error      =  $(job_name).$(jobid)
39#-Q- aix6 # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.)
40#-Q- aix6 # @ notification = error
41#-Q- aix6 # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $DateBegin ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $MASTER
42#-Q- aix6 # @ queue
43#-Q- sx8mercure #!/bin/ksh
44#-Q- sx8mercure ######################
45#-Q- sx8mercure ## SX8MERCURE   CEA ##
46#-Q- sx8mercure ######################
47#-Q- sx8mercure #PBS -N REBUILDWRK           # Nom du job
48#-Q- sx8mercure #PBS -j o                    # regroupement des stdout et stderr
49#-Q- sx8mercure #PBS -S /usr/bin/ksh         # shell de soumission
50#-Q- sx8mercure #PBS -l memsz_job=1gb        # Limite memoire a 1 Go
51#-Q- sx8mercure #PBS -l cputim_job=24:00:00  # Limite temps a 1 heures
52#-Q- sx8mercure #PBS -q scalaire
53#-Q- sx9mercure #!/bin/ksh
54#-Q- sx9mercure ######################
55#-Q- sx9mercure ## SX9MERCURE   CEA ##
56#-Q- sx9mercure ######################
57#-Q- sx9mercure #PBS -N REBUILDWRK           # Nom du job
58#-Q- sx9mercure #PBS -j o                    # regroupement des stdout et stderr
59#-Q- sx9mercure #PBS -S /usr/bin/ksh         # shell de soumission
60#-Q- sx9mercure #PBS -l memsz_job=1gb        # Limite memoire a 1 Go
61#-Q- sx9mercure #PBS -l cputim_job=24:00:00  # Limite temps a 1 heures
62#-Q- sx9mercure #PBS -q scalaire
63#-Q- default #!/bin/ksh
64#-Q- default ##################
65#-Q- default ## DEFAULT HOST ##
66#-Q- default ##################
67
68# $Date: $
69# $Author: $
70# $Revision: $
71# IPSL (2006)
72#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
73
74#set -eu
75#set -vx
76
77date
78
79#-Q- sx8brodie export OMP_NUM_THREADS=1
80#-Q- aix6 export OMP_NUM_THREADS=1
81
82########################################################################
83
84#D- Flag to determine if this job in a standalone mode
85#D- Default : value from AA_job if any
86StandAlone=${StandAlone:=true}
87
88#D- Flag to determine atlas job's output directory
89#D- Default : value from libIGCM_post.ksh if any
90POST_DIR=${POST_DIR:=${PBS_O_WORKDIR}}
91
92#D- Increased verbosity (1, 2, 3)
93#D- Default : value from AA_job if any
94Verbosity=${Verbosity:=3}
95
96#D- Low level debug : to bypass lib test checks and stack construction
97#D- Default : value from AA_job if any
98DEBUG_debug=${DEBUG_debug:=false}
99
100#D- Low level debug : to bypass lib test checks and stack construction
101#D- Default : value from AA_job if any
102libIGCM=${libIGCM:=/path/to/your/libIGCM}
103
104#D- TEMPORARY Flag to determine atmospheric resolution
105#D- Default : value from atmospheric driver if any
106RESOL_ATM=${RESOL_ATM:=ALL}
107
108#D- TEMPORARY Flag to determine ocean resolution
109#D- Default : value from ocean driver if any
110RESOL_OCE=${RESOL_OCE:=ORCA2}
111
112#D- TEMPORARY Flag to determine ice resolution
113#D- Default : value from ice driver if any
114RESOL_ICE=${RESOL_ICE:=ORCA2}
115
116#D- TEMPORARY Flag to determine ice resolution
117#D- Default : value from marine biogeochemistry driver if any
118RESOL_MBG=${RESOL_MBG:=ORCA2}
119
120
121#D- Flag to determine surface resolution
122#D- Default : value from surface driver if any
123RESOL_SRF=${RESOL_SRF:=ALL}
124
125########################################################################
126
127. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
128      ( ${DEBUG_debug} ) && IGCM_debug_Check
129. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
130     ( ${DEBUG_debug} ) && IGCM_card_Check
131. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
132     ( ${DEBUG_debug} ) && IGCM_date_Check
133#-------
134. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
135. ${libIGCM}/libIGCM_post/libIGCM_post.ksh
136
137########################################################################
138
139#set -vx
140
141RUN_DIR=${REBUILD_DIR}
142ListAllRebuildDir=$( ls -d ${REBUILD_DIR}/REBUILD_* | grep -B $(( ${NbRebuildDir} -1 )) ${PeriodDateBegin} )
143#
144IGCM_sys_Cd ${RUN_DIR}
145
146for directory in ${ListAllRebuildDir} ; do
147    #
148    IGCM_sys_Cd ${RUN_DIR}/$( basename ${directory} )
149
150    # --------------------------------------------------------------------
151    # Source function include in the REBUILD ksh and rebuild
152    # --------------------------------------------------------------------
153    . ${RUN_DIR}/$( basename ${directory} )/rebuild.ksh
154    IGCM_FlushRebuild
155    #
156    IGCM_sys_Cd ${RUN_DIR}
157    # Clean Up
158    IGCM_sys_Rm -rf ${directory}
159done
Note: See TracBrowser for help on using the repository browser.