Changeset 587
- Timestamp:
- 03/19/12 15:49:25 (12 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_atlas_LMDZ
r546 r587 178 178 FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 179 179 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 180 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 180 181 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 181 182 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 182 183 else 183 184 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 185 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 184 186 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 185 187 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} … … 221 223 222 224 # Save files 223 IGCM_sys_Put_Dir ATLAS ${R_ SAVE}225 IGCM_sys_Put_Dir ATLAS ${R_FIGR} 224 226 IGCM_sys_Rm -Rf ATLAS 225 227 IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_histmth.nc 226 228 227 229 # DODS copy 228 IGCM_sys_TestDirArchive ${R_ SAVE}/${R_ATLAS}230 IGCM_sys_TestDirArchive ${R_FIGR}/${R_ATLAS} 229 231 [ $? = 0 ] && IGCM_sys_Put_Dods ${R_ATLAS} 230 232 -
trunk/libIGCM/AA_atlas_ORCA_LIM
r546 r587 178 178 FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 179 179 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 180 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 180 181 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 181 182 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 182 183 else 183 184 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 185 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 184 186 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 185 187 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} … … 256 258 257 259 # Save files 258 IGCM_sys_Put_Dir ATLAS ${R_ SAVE}260 IGCM_sys_Put_Dir ATLAS ${R_FIGR} 259 261 260 262 IGCM_sys_Rm -Rf ATLAS … … 267 269 268 270 # DODS copy 269 IGCM_sys_TestDirArchive ${R_ SAVE}/${R_ATLAS}271 IGCM_sys_TestDirArchive ${R_FIGR}/${R_ATLAS} 270 272 [ $? = 0 ] && IGCM_sys_Put_Dods ${R_ATLAS} 271 273 -
trunk/libIGCM/AA_atlas_ORCHIDEE
r546 r587 187 187 FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 188 188 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 189 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 189 190 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 190 191 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 191 192 else 192 193 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 194 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 193 195 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 194 196 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} … … 227 229 228 230 # Save files 229 IGCM_sys_Put_Dir ATLAS ${R_ SAVE}231 IGCM_sys_Put_Dir ATLAS ${R_FIGR} 230 232 IGCM_sys_Rm -Rf ATLAS 231 233 IGCM_sys_Rm ${config_UserChoices_JobName}_SE_${YEARS}_1M_sechiba_history.nc 232 234 233 235 # DODS copy 234 IGCM_sys_TestDirArchive ${R_ SAVE}/${R_ATLAS}236 IGCM_sys_TestDirArchive ${R_FIGR}/${R_ATLAS} 235 237 [ $? = 0 ] && IGCM_sys_Put_Dods ${R_ATLAS} 236 238 -
trunk/libIGCM/AA_atlas_PISCES
r546 r587 179 179 FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 180 180 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 181 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 181 182 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 182 183 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 183 184 else 184 185 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 186 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 185 187 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 186 188 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} … … 225 227 226 228 # Save files 227 IGCM_sys_Put_Dir ATLAS ${R_ SAVE}229 IGCM_sys_Put_Dir ATLAS ${R_FIGR} 228 230 229 231 IGCM_sys_Rm -Rf ATLAS … … 232 234 233 235 # DODS copy 234 IGCM_sys_TestDirArchive ${R_ SAVE}/${R_ATLAS}236 IGCM_sys_TestDirArchive ${R_FIGR}/${R_ATLAS} 235 237 [ $? = 0 ] && IGCM_sys_Put_Dods ${R_ATLAS} 236 238 -
trunk/libIGCM/AA_monitoring
r554 r587 224 224 FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 225 225 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 226 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 226 227 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 227 228 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 228 229 else 229 230 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 231 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 230 232 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 231 233 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} … … 285 287 286 288 # Save files 287 IGCM_sys_Put_Dir MONITORING ${R_ SAVE}289 IGCM_sys_Put_Dir MONITORING ${R_FIGR} 288 290 289 291 # Dods copy -
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r554 r587 180 180 FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) 181 181 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 182 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 182 183 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 183 184 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} 184 185 else 185 186 R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 187 R_FIGR=${R_FIG}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 186 188 R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} 187 189 R_DODS=${config_UserChoices_TagName}/${config_UserChoices_JobName} -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
r548 r587 112 112 113 113 #==================================================== 114 #- ARCHIVE 115 typeset -r ARCHIVE=${DMFDIR} 114 #- ARCHIVE (dedicated to large files) 115 typeset -r ARCHIVE=${CCCSTOREDIR} 116 117 #- ARCHIVE (dedicated to small/medium files) 118 typeset -r STORAGE=${CCCWORKDIR} 119 120 #==================================================== 116 121 117 122 #==================================================== … … 123 128 #- R_OUT 124 129 typeset -r R_OUT=${ARCHIVE}/IGCM_OUT 130 131 #==================================================== 132 #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 133 typeset -r R_FIG=${STORAGE}/IGCM_OUT 125 134 126 135 #==================================================== … … 895 904 # USUAL WAY 896 905 # add dmfind/dmget (to demigrate all offline files) : 897 dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget906 #dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget 898 907 \cp -r $1 $2 > out_rsync 2>&1 899 908 RET=$? … … 1066 1075 if [ -f $2 ] ; then 1067 1076 IGCM_debug_Print 1 "$2 already exist" 1068 dmget $2 1077 #dmget $2 1078 ccc_hsm get $2 1069 1079 exist=true 1070 1080 if [ "X$( diff $1 $2 )" = X ] ; then … … 1161 1171 fi 1162 1172 1163 dmget ${dm_liste[*]} > out_rsync 2>&1 1173 #dmget ${dm_liste[*]} > out_rsync 2>&1 1174 ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1164 1175 RET=$? 1165 1176 if [ ${RET} -gt 0 ] ; then … … 1175 1186 # sleep 30 1176 1187 # echo "We try another time" 1177 # dmget ${dm_liste[*]} > out_rsync 2>&1 1188 ## dmget ${dm_liste[*]} > out_rsync 2>&1 1189 # ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1178 1190 # RET=$? 1179 1191 # if [ ${RET} -gt 0 ] ; then -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh
r586 r587 102 102 103 103 #==================================================== 104 #- ARCHIVE 105 typeset -r ARCHIVE=${DMFDIR} 104 #- ARCHIVE (dedicated to large files) 105 typeset -r ARCHIVE=${CCCSTOREDIR} 106 107 #- ARCHIVE (dedicated to small/medium files) 108 typeset -r STORAGE=${CCCWORKDIR} 106 109 107 110 #==================================================== … … 113 116 #- R_OUT 114 117 typeset -r R_OUT=${ARCHIVE}/IGCM_OUT 118 119 #==================================================== 120 #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 121 typeset -r R_FIG=${STORAGE}/IGCM_OUT 115 122 116 123 #==================================================== … … 833 840 #USUAL WAY 834 841 # add dmget (to demigrate all offline files) to reduce time of this command : 835 dmget $1/* 842 #dmget $1/* 843 ccc_hsm get $1/* 836 844 \cp -r $1 $2 > out_rsync 2>&1 837 845 RET=$? … … 1027 1035 if [ -f $2 ] ; then 1028 1036 IGCM_debug_Print 1 "$2 already exist" 1029 dmget $2 1037 #dmget $2 1038 ccc_hsm get $2 1030 1039 exist=true 1031 1040 if [ "X$( diff $1 $2 )" = X ] ; then … … 1166 1175 fi 1167 1176 1168 dmget ${dm_liste[*]} > out_rsync 2>&1 1177 #dmget ${dm_liste[*]} > out_rsync 2>&1 1178 ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1169 1179 RET=$? 1170 1180 … … 1181 1191 # sleep 30 1182 1192 # echo "We try another time" 1183 # dmget ${dm_liste[*]} > out_rsync 2>&1 1193 ## dmget ${dm_liste[*]} > out_rsync 2>&1 1194 # ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1184 1195 # RET=$? 1185 1196 # if [ ${RET} -gt 0 ] ; then … … 1389 1400 echo "IGCM_sys_Put_Dods :" $@ 1390 1401 fi 1402 typeset RET 1391 1403 if [ $DRYRUN = 0 ]; then 1392 if [ ! -d ${R_SAVE}/${1} ] ; then 1393 echo "WARNING : IGCM_sys_Put_Dods ${R_SAVE}/${1} DOES NOT EXIST ." 1404 if ( [ ! -d ${R_SAVE}/${1} ] && [ ! -d ${R_FIGR}/${1} ] ) ; then 1405 echo "WARNING IGCM_sys_Put_Dods : None of the following directories exist. Exactly one should." 1406 echo "WARNING IGCM_sys_Put_Dods : ${R_SAVE}/${1} DOES NOT EXIST." 1407 echo "WARNING IGCM_sys_Put_Dods : ${R_FIGR}/${1} DOES NOT EXIST." 1394 1408 IGCM_debug_PopStack "IGCM_sys_Put_Dods" 1395 1409 return 1396 1410 fi 1397 1411 1398 typeset RET 1399 # 1400 cd ${R_SAVE} 1412 if ( [ -d ${R_SAVE}/${1} ] && [ -d ${R_FIGR}/${1} ] ) ; then 1413 echo "WARNING IGCM_sys_Put_Dods : Both of the following directories exist. Exactly one should." 1414 echo "WARNING IGCM_sys_Put_Dods : ${R_SAVE}/${1} EXISTS." 1415 echo "WARNING IGCM_sys_Put_Dods : ${R_FIGR}/${1} EXISTS." 1416 IGCM_debug_PopStack "IGCM_sys_Put_Dods" 1417 return 1418 fi 1419 # 1420 if [ -d ${R_SAVE}/${1} ] ; then 1421 cd ${R_SAVE} 1422 elif [ -d ${R_FIGR}/${1} ] ; then 1423 cd ${R_FIGR} 1424 fi 1425 1401 1426 IGCM_sys_Dods_Rm ${1} 1402 1427 IGCM_sys_Dods_Cp ${1} -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex8.ksh
r548 r587 89 89 #==================================================== 90 90 91 # ============ CESIUM START ============ # 92 93 #==================================================== 94 #- Mirror libIGCM from mercure to cesium if needed 95 #ROOTSYS=$( echo ${libIGCM} | gawk -F"/" '{print $3}' ) 96 #if [ ! ${ROOTSYS} = "home" ] ; then 97 # typeset -r MirrorlibIGCM=${MirrorlibIGCM:=true} 98 #else 99 # typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 100 #fi 101 102 #==================================================== 103 #- libIGCM_POST 104 #if ( ${MirrorlibIGCM} ) ; then 105 # PATHlibIGCM=$( echo ${libIGCM} | gawk -F"${LOGIN}/" '{print $2}' | sed -e "s&/libIGCM&&" ) 106 # typeset -r libIGCM_POST=${HOME}/MIRROR/${PATHlibIGCM}/libIGCM 107 #else 108 # typeset -r libIGCM_POST=${libIGCM} 109 #fi 110 111 # ============ CESIUM END ============ # 112 113 #==================================================== 114 #- MirrorlibIGCM uncomment for frontend 115 typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 116 117 #==================================================== 118 #- libIGCM_POST uncomment for frontend 119 typeset -r libIGCM_POST=${libIGCM} 120 91 121 #==================================================== 92 122 #- R_EXE (==> BIN_DIR = ${MODIPSL}/bin ) … … 98 128 99 129 #==================================================== 100 #- ARCHIVE 101 typeset -r ARCHIVE=${DMFDIR} 102 103 # ============ CESIUM START ============ # 104 105 #==================================================== 106 #- Mirror libIGCM from mercure to cesium if needed 107 #ROOTSYS=$( echo ${libIGCM} | gawk -F"/" '{print $2}' ) 108 #if [ ! ${ROOTSYS} = "home" ] ; then 109 # typeset -r MirrorlibIGCM=${MirrorlibIGCM:=true} 110 #else 111 # typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 112 #fi 113 114 #==================================================== 115 #- libIGCM_POST 116 #if ( ${MirrorlibIGCM} ) ; then 117 # PATHlibIGCM=$( echo ${libIGCM} | gawk -F"${LOGIN}/" '{print $2}' | sed -e "s&/libIGCM&&" ) 118 # typeset -r libIGCM_POST=${HOME}/MIRROR/${PATHlibIGCM}/libIGCM 119 #else 120 # typeset -r libIGCM_POST=${libIGCM} 121 #fi 122 123 # ============ CESIUM END ============ # 124 125 #==================================================== 126 #- Mirror libIGCM from mercure to cesium if needed 127 typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 128 129 #==================================================== 130 #- libIGCM_POST 131 typeset -r libIGCM_POST=${libIGCM} 130 #- ARCHIVE (dedicated to large files) 131 typeset -r ARCHIVE=${CCCSTOREDIR} 132 133 #- ARCHIVE (dedicated to small/medium files) 134 typeset -r STORAGE=${CCCWORKDIR} 132 135 133 136 #==================================================== … … 139 142 #- R_OUT 140 143 typeset -r R_OUT=${ARCHIVE}/IGCM_OUT 144 145 #==================================================== 146 #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 147 typeset -r R_FIG=${STORAGE}/IGCM_OUT 141 148 142 149 #==================================================== … … 271 278 status=completed 272 279 fi 273 274 ssh ${MASTER} /bin/ksh <<-EOF275 export LOGIN=${LOGIN}276 export config_UserChoices_JobName=${config_UserChoices_JobName}277 export config_UserChoices_MailName=${config_UserChoices_MailName}278 export DateBegin=${DateBegin}279 export DateEnd=${DateEnd}280 export R_SAVE=${R_SAVE}281 export SUBMIT_DIR=${SUBMIT_DIR}282 export status=${status}283 284 280 cat << END_MAIL > job_end.mail 285 281 Dear ${LOGIN}, … … 296 292 elif [ -f ~/.forward ] ; then 297 293 mailx -s "${config_UserChoices_JobName} ${status}" $( cat ~/.forward ) < job_end.mail 298 fi 299 300 sleep 10 301 rm -f job_end.mail 302 EOF 294 else 295 mailx -s "${config_UserChoices_JobName} ${status}" ${LOGIN} < job_end.mail 296 fi 303 297 304 298 if [ $? -gt 0 ] ; then … … 627 621 # ============ FRONTEND START ============ # 628 622 629 /usr/bin/nqsII/qsub - o ${POST_DIR}/${Script_Post_Output}.out ${libIGCM}/$1.job -v ${listVarEnv}623 /usr/bin/nqsII/qsub -q scalaire -o ${POST_DIR}/${Script_Post_Output}.out ${libIGCM}/$1.job -v ${listVarEnv} 630 624 631 625 # ============ FRONTEND END ============ # 632 626 633 627 # ============ CESIUM START ============ # 634 635 628 # typeset NB_ESSAI DELAI status i 636 629 # # number of tentative … … 649 642 # (( i = i + 1 )) 650 643 # done 651 652 644 # ============ CESIUM END ============ # 653 645 … … 956 948 # USUAL WAY 957 949 # add dmfind/dmget (to demigrate all offline files) : 958 dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget950 #dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget 959 951 \cp -r $1 $2 > out_rsync 2>&1 960 952 RET=$? … … 1233 1225 fi 1234 1226 1235 dmget ${dm_liste[*]} > out_rsync 2>&1 1227 #dmget ${dm_liste[*]} > out_rsync 2>&1 1228 ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1236 1229 RET=$? 1237 1230 if [ ${RET} -gt 0 ] ; then … … 1247 1240 # sleep 30 1248 1241 # echo "We try another time" 1249 # dmget ${dm_liste[*]} > out_rsync 2>&1 1242 ## dmget ${dm_liste[*]} > out_rsync 2>&1 1243 # ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1250 1244 # RET=$? 1251 1245 # if [ ${RET} -gt 0 ] ; then -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh
r582 r587 89 89 #==================================================== 90 90 91 # ============ CESIUM START ============ # 92 93 #==================================================== 94 #- Mirror libIGCM from mercure to cesium if needed 95 #ROOTSYS=$( echo ${libIGCM} | gawk -F"/" '{print $3}' ) 96 #if [ ! ${ROOTSYS} = "home" ] ; then 97 # typeset -r MirrorlibIGCM=${MirrorlibIGCM:=true} 98 #else 99 # typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 100 #fi 101 102 #==================================================== 103 #- libIGCM_POST 104 #if ( ${MirrorlibIGCM} ) ; then 105 # PATHlibIGCM=$( echo ${libIGCM} | gawk -F"${LOGIN}/" '{print $2}' | sed -e "s&/libIGCM&&" ) 106 # typeset -r libIGCM_POST=${HOME}/MIRROR/${PATHlibIGCM}/libIGCM 107 #else 108 # typeset -r libIGCM_POST=${libIGCM} 109 #fi 110 111 # ============ CESIUM END ============ # 112 113 #==================================================== 114 #- MirrorlibIGCM uncomment for frontend 115 typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 116 117 #==================================================== 118 #- libIGCM_POST uncomment for frontend 119 typeset -r libIGCM_POST=${libIGCM} 120 91 121 #==================================================== 92 122 #- R_EXE (==> BIN_DIR = ${MODIPSL}/bin ) … … 98 128 99 129 #==================================================== 100 #- ARCHIVE 101 typeset -r ARCHIVE=${DMFDIR} 102 103 # ============ CESIUM START ============ # 104 105 #==================================================== 106 #- Mirror libIGCM from mercure to cesium if needed 107 ROOTSYS=$( echo ${libIGCM} | gawk -F"/" '{print $3}' ) 108 if [ ! ${ROOTSYS} = "home" ] ; then 109 typeset -r MirrorlibIGCM=${MirrorlibIGCM:=true} 110 else 111 typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 112 fi 113 114 #==================================================== 115 #- libIGCM_POST 116 if ( ${MirrorlibIGCM} ) ; then 117 PATHlibIGCM=$( echo ${libIGCM} | gawk -F"${LOGIN}/" '{print $2}' | sed -e "s&/libIGCM&&" ) 118 typeset -r libIGCM_POST=${HOME}/MIRROR/${PATHlibIGCM}/libIGCM 119 else 120 typeset -r libIGCM_POST=${libIGCM} 121 fi 122 123 # ============ CESIUM END ============ # 124 125 #==================================================== 126 #- MirrorlibIGCM uncomment for frontend 127 #typeset -r MirrorlibIGCM=${MirrorlibIGCM:=false} 128 129 #==================================================== 130 #- libIGCM_POST uncomment for frontend 131 #typeset -r libIGCM_POST=${libIGCM} 130 #- ARCHIVE (dedicated to large files) 131 typeset -r ARCHIVE=${CCCSTOREDIR} 132 133 #- ARCHIVE (dedicated to small/medium files) 134 typeset -r STORAGE=${CCCWORKDIR} 132 135 133 136 #==================================================== … … 139 142 #- R_OUT 140 143 typeset -r R_OUT=${ARCHIVE}/IGCM_OUT 144 145 #==================================================== 146 #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 147 typeset -r R_FIG=${STORAGE}/IGCM_OUT 141 148 142 149 #==================================================== … … 941 948 # USUAL WAY 942 949 # add dmfind/dmget (to demigrate all offline files) : 943 dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget950 #dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget 944 951 \cp -r $1 $2 > out_rsync 2>&1 945 952 RET=$? … … 1218 1225 fi 1219 1226 1220 dmget ${dm_liste[*]} > out_rsync 2>&1 1227 #dmget ${dm_liste[*]} > out_rsync 2>&1 1228 ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1221 1229 RET=$? 1222 1230 if [ ${RET} -gt 0 ] ; then … … 1232 1240 # sleep 30 1233 1241 # echo "We try another time" 1234 # dmget ${dm_liste[*]} > out_rsync 2>&1 1242 ## dmget ${dm_liste[*]} > out_rsync 2>&1 1243 # ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1235 1244 # RET=$? 1236 1245 # if [ ${RET} -gt 0 ] ; then -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
r584 r587 103 103 #==================================================== 104 104 105 #====================================================106 #- R_EXE (==> BIN_DIR = ${MODIPSL}/bin )107 typeset -r R_EXE="${MODIPSL}/bin"108 109 #====================================================110 #- SUBMIT_DIR : submission dir111 typeset SUBMIT_DIR=${SUBMIT_DIR:=${LS_SUBCWD}}112 113 #====================================================114 #- ARCHIVE115 typeset -r ARCHIVE=${DMFDIR}116 117 105 # ============ CESIUM START ============ # 118 106 … … 146 134 147 135 #==================================================== 136 #- R_EXE (==> BIN_DIR = ${MODIPSL}/bin ) 137 typeset -r R_EXE="${MODIPSL}/bin" 138 139 #==================================================== 140 #- SUBMIT_DIR : submission dir 141 typeset SUBMIT_DIR=${SUBMIT_DIR:=${LS_SUBCWD}} 142 143 #==================================================== 144 #- ARCHIVE (dedicated to large files) 145 typeset -r ARCHIVE=${CCCSTOREDIR} 146 147 #- ARCHIVE (dedicated to small/medium files) 148 typeset -r STORAGE=${CCCWORKDIR} 149 150 #==================================================== 148 151 #- IN 149 152 typeset -r R_IN=${R_IN:=/ccc/work/cont003/dsm/p86ipsl/IGCM} … … 153 156 #- R_OUT 154 157 typeset -r R_OUT=${ARCHIVE}/IGCM_OUT 158 159 #==================================================== 160 #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 161 typeset -r R_FIG=${STORAGE}/IGCM_OUT 155 162 156 163 #==================================================== … … 1027 1034 # USUAL WAY 1028 1035 # add dmfind/dmget (to demigrate all offline files) : 1029 dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget1036 #dmfind $1 -state MIG -o -state OFL -o -state PAR | dmget 1030 1037 \cp -r $1 $2 > out_rsync 2>&1 1031 1038 RET=$? … … 1340 1347 fi 1341 1348 1342 dmget ${dm_liste[*]} > out_rsync 2>&1 1349 #dmget ${dm_liste[*]} > out_rsync 2>&1 1350 ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1343 1351 RET=$? 1344 1352 if [ ${RET} -gt 0 ] ; then … … 1354 1362 # sleep 30 1355 1363 # echo "We try another time" 1356 # dmget ${dm_liste[*]} > out_rsync 2>&1 1364 ## dmget ${dm_liste[*]} > out_rsync 2>&1 1365 # ccc_hsm get ${dm_liste[*]} > out_rsync 2>&1 1357 1366 # RET=$? 1358 1367 # if [ ${RET} -gt 0 ] ; then … … 1570 1579 echo "IGCM_sys_Put_Dods :" $@ 1571 1580 fi 1581 typeset RET 1572 1582 if [ $DRYRUN = 0 ]; then 1573 if [ ! -d ${R_SAVE}/${1} ] ; then 1574 echo "WARNING : IGCM_sys_Put_Dods ${R_SAVE}/${1} DOES NOT EXIST ." 1583 if ( [ ! -d ${R_SAVE}/${1} ] && [ ! -d ${R_FIGR}/${1} ] ) ; then 1584 echo "WARNING IGCM_sys_Put_Dods : None of the following directories exist. Exactly one should." 1585 echo "WARNING IGCM_sys_Put_Dods : ${R_SAVE}/${1} DOES NOT EXIST." 1586 echo "WARNING IGCM_sys_Put_Dods : ${R_FIGR}/${1} DOES NOT EXIST." 1575 1587 IGCM_debug_PopStack "IGCM_sys_Put_Dods" 1576 1588 return 1577 1589 fi 1578 1590 1579 typeset RET 1580 # 1581 cd ${R_SAVE} 1591 if ( [ -d ${R_SAVE}/${1} ] && [ -d ${R_FIGR}/${1} ] ) ; then 1592 echo "WARNING IGCM_sys_Put_Dods : Both of the following directories exist. Exactly one should." 1593 echo "WARNING IGCM_sys_Put_Dods : ${R_SAVE}/${1} EXISTS." 1594 echo "WARNING IGCM_sys_Put_Dods : ${R_FIGR}/${1} EXISTS." 1595 IGCM_debug_PopStack "IGCM_sys_Put_Dods" 1596 return 1597 fi 1598 # 1599 if [ -d ${R_SAVE}/${1} ] ; then 1600 cd ${R_SAVE} 1601 elif [ -d ${R_FIGR}/${1} ] ; then 1602 cd ${R_FIGR} 1603 fi 1604 1582 1605 IGCM_sys_Dods_Rm ${1} 1583 1606 IGCM_sys_Dods_Cp ${1}
Note: See TracChangeset
for help on using the changeset viewer.