Changeset 725 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
- Timestamp:
- 10/18/12 09:13:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
r719 r725 143 143 144 144 #==================================================== 145 #- ARCHIVE (dedicated to large files)146 typeset -r ARCHIVE=${CCCSTOREDIR}147 148 #- ARCHIVE (dedicated to small/medium files)149 typeset -r STORAGE=${CCCWORKDIR}150 151 #====================================================152 145 #- IN 153 146 typeset -r R_IN=${R_IN:=/ccc/work/cont003/dsm/p86ipsl/IGCM} … … 155 148 156 149 #==================================================== 150 #- ARCHIVE (dedicated to large files) 151 typeset ARCHIVE=${CCCSTOREDIR} 152 153 #==================================================== 154 #- STORAGE (dedicated to small/medium files) 155 typeset STORAGE=${CCCWORKDIR} 156 157 #==================================================== 157 158 #- R_OUT 158 typeset -rR_OUT=${ARCHIVE}/IGCM_OUT159 typeset R_OUT=${ARCHIVE}/IGCM_OUT 159 160 160 161 #==================================================== 161 162 #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 162 typeset -rR_FIG=${STORAGE}/IGCM_OUT163 typeset R_FIG=${STORAGE}/IGCM_OUT 163 164 164 165 #==================================================== … … 207 208 DEFAULT_NUM_PROC_TOTAL=${BATCH_NUM_PROC_TOT} 208 209 210 #D-#================================================== 211 #D-function IGCM_sys_ChangeArchive 212 #D-* Purpose: if SpaceName=TEST everything is stored on SCRATCHDIR 213 #D-* Examples: 214 #D- 215 function IGCM_sys_ChangeArchive { 216 IGCM_debug_PushStack "IGCM_sys_ChangeArchive" 217 218 ARCHIVE=${SCRATCHDIR} 219 STORAGE=${SCRATCHDIR} 220 R_OUT=${ARCHIVE}/IGCM_OUT 221 R_FIG=${STORAGE}/IGCM_OUT 222 223 IGCM_debug_Print 1 "ARCHIVE has been redefined = ${ARCHIVE}" 224 IGCM_debug_Print 1 "STORAGE has been redefined = ${STORAGE}" 225 IGCM_debug_Print 1 "R_OUT has been redefined = ${R_OUT}" 226 IGCM_debug_Print 1 "R_FIG has been redefined = ${R_FIG}" 227 228 IGCM_debug_PopStack "IGCM_sys_ChangeArchive" 229 } 209 230 210 231 #D-#================================================== … … 1357 1378 fi 1358 1379 1359 typeset NB_ESSAI DELAI status i exist skip 1380 typeset NB_ESSAI DELAI status i exist skip 1360 1381 1361 1382 # number of tentative … … 1827 1848 fi 1828 1849 1829 typeset NB_ESSAI DELAI status i 1850 typeset NB_ESSAI DELAI status i lastArg 1830 1851 # number of tentative 1831 1852 NB_ESSAI=3 … … 1842 1863 \rm out_rsync 1843 1864 IGCM_debug_Print 2 "IGCM_sys_rebuild : ${i}/${NB_ESSAI} sleep ${DELAI} seconds and try again." 1865 eval lastArg=\$$# 1866 \rm ${lastArg} 1844 1867 else 1845 1868 \rm out_rsync … … 1849 1872 done 1850 1873 1851 if [ $ ?-gt 0 ] ; then1874 if [ ${status} -gt 0 ] ; then 1852 1875 echo "IGCM_sys_rebuild : rebuild error" 1853 1876 IGCM_debug_Exit "rebuild" … … 1865 1888 list_opt=$@ 1866 1889 1867 # Invert Axis : t,x -> x,t 1890 # Invert Axis : t,x -> x,t 1868 1891 # t,pres,x -> x,t,pres 1869 1892 # So that we can concatenate along x … … 1928 1951 # j3=${proc_stn[${iStation}]} 1929 1952 # Extract station 1930 # Invert Axis : t,x -> x,t 1953 # Invert Axis : t,x -> x,t 1931 1954 # t,pres,x -> x,t,pres 1932 1955 # So that we can concatenate along x … … 2226 2249 fi 2227 2250 2228 else # Only one executable. 2251 else # Only one executable. 2229 2252 # Check has to be added with : 2230 2253 # Job : … … 2308 2331 2309 2332 if [ "${unit_quota}" = "*" ] ; then 2310 2311 2312 2313 2314 2315 2333 IGCM_debug_Print 1 "Please, check your quota of volume on scratch" 2334 IGCM_debug_Print 1 "More than 100% of your quota is used" 2335 IGCM_debug_Print 1 "Use the ccc_quota command to check" 2336 IGCM_debug_Print 1 "You must have more than 10% available to run" 2337 IGCM_debug_Exit "Not enough space to run ! STOP HERE" 2338 IGCM_debug_Verif_Exit 2316 2339 fi 2317 2340 … … 2371 2394 2372 2395 if [ "${unit_quota}" = "*" ] ; then 2373 2374 2375 2376 2377 2378 2396 IGCM_debug_Print 1 "Please, check your quota of inode on scratch" 2397 IGCM_debug_Print 1 "More than 100% of your quota is used" 2398 IGCM_debug_Print 1 "Use the ccc_quota command to check" 2399 IGCM_debug_Print 1 "You must have more than 10% available to run" 2400 IGCM_debug_Exit "Not enough space to run ! STOP HERE" 2401 IGCM_debug_Verif_Exit 2379 2402 fi 2380 2403
Note: See TracChangeset
for help on using the changeset viewer.