1 | #-Q- platine #!/usr/bin/ksh |
---|
2 | #-Q- platine ################## |
---|
3 | #-Q- platine ## PLATINE CEA ## |
---|
4 | #-Q- platine ################## |
---|
5 | #-Q- platine #BSUB -J ATL_OPA # 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 1:00 # Limite temps |
---|
9 | #-Q- platine #BSUB -q post # Passage en queue post |
---|
10 | #-Q- sx8brodie ####################### |
---|
11 | #-Q- sx8brodie ## SX8BRODIE IDRIS ## |
---|
12 | #-Q- sx8brodie ####################### |
---|
13 | #-Q- sx8brodie #QSUB -r ATL_OPA # Nom du job |
---|
14 | #-Q- sx8brodie #QSUB -lT 3:00:00 # limite en temps total |
---|
15 | #-Q- sx8brodie #QSUB -eo # rassemble standard error et output |
---|
16 | #-Q- sx8brodie #QSUB -J m |
---|
17 | #-Q- sx8brodie #QSUB -l mpp_p=2 |
---|
18 | #-Q- sx8brodie #QSUB -s /bin/ksh # shell du job |
---|
19 | #-Q- sx8mercure #!/bin/ksh |
---|
20 | #-Q- sx8mercure ###################### |
---|
21 | #-Q- sx8mercure ## SX8MERCURE CEA ## |
---|
22 | #-Q- sx8mercure ###################### |
---|
23 | #-Q- sx8mercure #PBS -N ATL_OPA # Nom du job |
---|
24 | #-Q- sx8mercure #PBS -j o # regroupement des stdout et stderr |
---|
25 | #-Q- sx8mercure #PBS -S /usr/bin/ksh # shell de soumission |
---|
26 | #-Q- sx8mercure #PBS -l memsz_job=1gb # Limite memoire a 1 Go |
---|
27 | #-Q- sx8mercure #PBS -l cputim_job=2:00:00 # Limite temps a 2 heures |
---|
28 | #-Q- sx8mercure #PBS -q scalaire |
---|
29 | #-Q- default #!/bin/ksh |
---|
30 | #-Q- default ################## |
---|
31 | #-Q- default ## DEFAULT HOST ## |
---|
32 | #-Q- default ################## |
---|
33 | |
---|
34 | # $Date$ |
---|
35 | # $Author$ |
---|
36 | # $Revision$ |
---|
37 | # IPSL (2006) |
---|
38 | # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC |
---|
39 | |
---|
40 | #set -vx |
---|
41 | |
---|
42 | date |
---|
43 | |
---|
44 | #-Q- sx8brodie export OMP_NUM_THREADS=1 |
---|
45 | |
---|
46 | ######################################################################## |
---|
47 | |
---|
48 | . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh ; |
---|
49 | . ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh ; #IGCM_debug_Check |
---|
50 | . ${libIGCM}/libIGCM_card/libIGCM_card.ksh ; #IGCM_card_Check |
---|
51 | |
---|
52 | ######################################################################## |
---|
53 | |
---|
54 | #set -vx |
---|
55 | |
---|
56 | R_ATLAS=ATLAS/SE_${YEARS} |
---|
57 | R_OUT_OCE=${R_SAVE}/OCE |
---|
58 | R_OUT_ICE=${R_SAVE}/ICE |
---|
59 | |
---|
60 | RUN_DIR=${RUN_DIR_PATH}/ATLAS_ORCALIM_${YEARS} |
---|
61 | IGCM_sys_MkdirWork ${RUN_DIR} |
---|
62 | IGCM_sys_Cd ${RUN_DIR} |
---|
63 | |
---|
64 | # -------------------------------------------- |
---|
65 | # Insert your commands between III...III lines |
---|
66 | # and precise produced directories to save |
---|
67 | # IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII |
---|
68 | |
---|
69 | IGCM_sys_Get ${R_OUT_OCE}/Analyse/SE/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc ${RUN_DIR} |
---|
70 | IGCM_sys_Get ${R_OUT_OCE}/Analyse/SE/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_U.nc ${RUN_DIR} |
---|
71 | IGCM_sys_Get ${R_OUT_OCE}/Analyse/SE/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_V.nc ${RUN_DIR} |
---|
72 | IGCM_sys_Get ${R_OUT_OCE}/Analyse/SE/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_W.nc ${RUN_DIR} |
---|
73 | IGCM_sys_Get ${R_OUT_ICE}/Analyse/SE/${config_UserChoices_JobName}_SE_${YEARS}_1M_icemod.nc ${RUN_DIR} |
---|
74 | |
---|
75 | atlas -o ${RUN_DIR}/${R_ATLAS}/OCE_T -l ${FER_ATLAS}/atlas_p_${RESOL_OCE}_diag1_[ab].cfg ${RUN_DIR}/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc |
---|
76 | atlas -o ${RUN_DIR}/${R_ATLAS}/OCE_U -l ${FER_ATLAS}/atlas_p_${RESOL_OCE}_diag0_U.cfg ${RUN_DIR}/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_U.nc |
---|
77 | atlas -o ${RUN_DIR}/${R_ATLAS}/OCE_V -l ${FER_ATLAS}/atlas_p_${RESOL_OCE}_diag0_V.cfg ${RUN_DIR}/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_V.nc |
---|
78 | #atlas -o ${RUN_DIR}/${R_ATLAS}/OCE_W -l ${FER_ATLAS}/atlas_p_${RESOL_OCE}_diag0_W.cfg ${RUN_DIR}/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_W.nc |
---|
79 | atlas -o ${RUN_DIR}/${R_ATLAS}/OCE -l ${FER_ATLAS}/atlas_p_${RESOL_OCE}_diag0_[de].cfg ${RUN_DIR}/${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_T.nc |
---|
80 | atlas -o ${RUN_DIR}/${R_ATLAS}/ICE -l ${FER_ATLAS}/atlas_p_${RESOL_OCE}LIM_diag0_[abc].cfg ${RUN_DIR}/${config_UserChoices_JobName}_SE_${YEARS}_1M_icemod.nc |
---|
81 | |
---|
82 | # IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII |
---|
83 | |
---|
84 | # Put ferret journal files together |
---|
85 | for file in $( ls ${R_ATLAS}/OCE_T/*/*jnl ) ; do |
---|
86 | echo -e "\n\n################################" ; |
---|
87 | echo -e "$file\n" ; cat $file ; |
---|
88 | done > ${R_ATLAS}/OCE_T/allferretscript.txt |
---|
89 | |
---|
90 | for file in $( ls ${R_ATLAS}/OCE_U/*/*jnl ) ; do |
---|
91 | echo -e "\n\n################################" ; |
---|
92 | echo -e "$file\n" ; cat $file ; |
---|
93 | done > ${R_ATLAS}/OCE_U/allferretscript.txt |
---|
94 | |
---|
95 | for file in $( ls ${R_ATLAS}/OCE_V/*/*jnl ) ; do |
---|
96 | echo -e "\n\n################################" ; |
---|
97 | echo -e "$file\n" ; cat $file ; |
---|
98 | done > ${R_ATLAS}/OCE_V/allferretscript.txt |
---|
99 | |
---|
100 | for file in $( ls ${R_ATLAS}/OCE/*/*jnl ) ; do |
---|
101 | echo -e "\n\n################################" ; |
---|
102 | echo -e "$file\n" ; cat $file ; |
---|
103 | done > ${R_ATLAS}/OCE/allferretscript.txt |
---|
104 | |
---|
105 | for file in $( ls ${R_ATLAS}/ICE/*/*jnl ) ; do |
---|
106 | echo -e "\n\n################################" ; |
---|
107 | echo -e "$file\n" ; cat $file ; |
---|
108 | done > ${R_ATLAS}/ICE/allferretscript.txt |
---|
109 | |
---|
110 | # Clear some files |
---|
111 | find . \( -name "*.stdout" -o -name "*.jnl" \) -print -exec rm -f {} \; |
---|
112 | |
---|
113 | # Save files |
---|
114 | IGCM_sys_Put_Dir ATLAS ${R_SAVE} |
---|
115 | |
---|
116 | IGCM_sys_Rm -Rf ATLAS |
---|
117 | IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_grid_[TUVW].nc |
---|
118 | IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_icemod.nc |
---|
119 | |
---|
120 | # DODS copy |
---|
121 | [ -d ${R_SAVE}/${R_ATLAS} ] && IGCM_sys_Put_Dods ${R_ATLAS} |
---|
122 | |
---|
123 | date |
---|