Changeset 1057 for trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
- Timestamp:
- 09/23/14 11:16:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
r1046 r1057 117 117 118 118 #==================================================== 119 #- ARCHIVE120 typeset ARCHIVE=${ARCHIVE:=/home/${LOGIN}}121 122 #====================================================123 #- STORAGE (dedicated to small/medium files)124 typeset STORAGE=${ARCHIVE}125 126 #====================================================127 #- R_OUT128 typeset R_OUT=${ARCHIVE}/IGCM_OUT129 130 #====================================================131 #- R_FIG (hosting figures : monitoring and atlas, and/or small files)132 typeset R_FIG=${STORAGE}/IGCM_OUT133 134 #====================================================135 #- R_BUF (ONLY FOR double copy an scratch)136 typeset -r R_BUF=${STORAGE}/IGCM_OUT137 138 #====================================================139 119 #- RUN_DIR_PATH : Temporary working directory (=> TMP) 140 120 typeset -r RUN_DIR_PATH=${RUN_DIR_PATH:=${STORAGE}/RUN_DIR/tmp$$} … … 162 142 163 143 #D-#================================================== 164 #D-function IGCM_sys_ChangeArchive 165 #D-* Purpose: Just a dummy call on this machine 166 #D-* Examples: 167 #D- 168 function IGCM_sys_ChangeArchive { 169 IGCM_debug_Print 1 " dummy function : IGCM_sys_ChangeArchive " 144 #D-function IGCM_sys_defineArchives 145 #D-* Purpose: 146 #D-* Define ARCHIVE : Dedicated to large files 147 #D-* Define STORAGE : Dedicated to small/medium files 148 #D-* Define R_OUT : Output tree located on ARCHIVE 149 #D-* Define R_FIG : Output tree located on STORAGE hosting figures (monitoring and atlas, and/or small files) 150 #D-* Define R_BUF : Output tree located on STORAGE hosting files waiting for rebuild or pack processes 151 #D-* if SpaceName=TEST nothing special will hapen 152 #D-* Examples: 153 #D- 154 function IGCM_sys_defineArchives { 155 IGCM_debug_PushStack "IGCM_sys_defineArchives" 156 157 if [ ! X${config_UserChoices_Archive} = X ]; then 158 #==================================================== 159 #- ARCHIVE (dedicated to large files) 160 typeset ARCHIVE=${config_UserChoices_Archive} 161 else 162 #==================================================== 163 #- ARCHIVE (dedicated to large files) 164 typeset ARCHIVE=${ARCHIVE:=/home/${LOGIN}} 165 fi 166 167 if [ ! X${config_UserChoices_Storage} = X ]; then 168 #==================================================== 169 #- STORAGE (dedicated to small/medium files) 170 typeset STORAGE=${config_UserChoices_Storage} 171 else 172 #==================================================== 173 #- STORAGE (dedicated to small/medium files) 174 typeset STORAGE=${ARCHIVE} 175 fi 176 177 # ON OBELIX NO SPECIAL CASE WHEN X${config_UserChoices_SpaceName} = XTEST 178 179 #==================================================== 180 #- R_OUT 181 typeset R_OUT=${ARCHIVE}/IGCM_OUT 182 183 #==================================================== 184 #- R_FIG (hosting figures : monitoring and atlas, and/or small files) 185 typeset R_FIG=${STORAGE}/IGCM_OUT 186 187 #==================================================== 188 #- R_BUF (ONLY FOR double copy an scratch) 189 typeset -r R_BUF=${STORAGE}/IGCM_OUT 190 191 IGCM_debug_Print 1 "R_OUT has been defined = ${R_OUT}" 192 IGCM_debug_Print 1 "R_BUF has been defined = ${R_BUF}" 193 IGCM_debug_Print 1 "R_FIG has been defined = ${R_FIG}" 194 195 IGCM_debug_PopStack "IGCM_sys_defineArchives" 170 196 } 171 197 … … 363 389 #D- 364 390 function IGCM_sys_Chmod { 365 IGCM_debug_PushStack "IGCM_sys_Chmod" --$@391 IGCM_debug_PushStack "IGCM_sys_Chmod" $@ 366 392 if ( $DEBUG_sys ) ; then 367 393 echo "IGCM_sys_Chmod :" $@ … … 764 790 #D- 765 791 function IGCM_sys_Rm { 766 IGCM_debug_PushStack "IGCM_sys_Rm" --$@792 IGCM_debug_PushStack "IGCM_sys_Rm" $@ 767 793 if ( $DEBUG_sys ) ; then 768 794 echo "IGCM_sys_Rm :" $@ … … 792 818 #D- 793 819 function IGCM_sys_RmRunDir { 794 IGCM_debug_PushStack "IGCM_sys_RmRunDir" --$@820 IGCM_debug_PushStack "IGCM_sys_RmRunDir" $@ 795 821 if ( $DEBUG_sys ) ; then 796 822 echo "IGCM_sys_RmRunDir :" $@ … … 1408 1434 #D- 1409 1435 function IGCM_sys_rebuild { 1410 IGCM_debug_PushStack "IGCM_sys_rebuild" --$@1436 IGCM_debug_PushStack "IGCM_sys_rebuild" $@ 1411 1437 if ( $DEBUG_sys ) ; then 1412 1438 echo "IGCM_sys_rebuild :" $@ … … 1452 1478 #D- 1453 1479 function IGCM_sys_rebuild_station { 1454 IGCM_debug_PushStack "IGCM_sys_rebuild_station" --$@1480 IGCM_debug_PushStack "IGCM_sys_rebuild_station" $@ 1455 1481 typeset i list_opt file_in file_out prefix_invert list_invert 1456 1482 if ( $DEBUG_sys ) ; then … … 1931 1957 #D- 1932 1958 function IGCM_sys_ncap2 { 1933 IGCM_debug_PushStack "IGCM_sys_ncap2" --$@1959 IGCM_debug_PushStack "IGCM_sys_ncap2" $@ 1934 1960 if ( $DEBUG_sys ) ; then 1935 1961 echo "IGCM_sys_ncap2 :" $@ … … 1973 1999 #D- 1974 2000 function IGCM_sys_ncatted { 1975 IGCM_debug_PushStack "IGCM_sys_ncatted" --$@2001 IGCM_debug_PushStack "IGCM_sys_ncatted" $@ 1976 2002 if ( $DEBUG_sys ) ; then 1977 2003 echo "IGCM_sys_ncatted :" $@ … … 2015 2041 #D- 2016 2042 function IGCM_sys_ncbo { 2017 IGCM_debug_PushStack "IGCM_sys_ncbo" --$@2043 IGCM_debug_PushStack "IGCM_sys_ncbo" $@ 2018 2044 if ( $DEBUG_sys ) ; then 2019 2045 echo "IGCM_sys_ncbo :" $@ … … 2057 2083 #D- 2058 2084 function IGCM_sys_ncdiff { 2059 IGCM_debug_PushStack "IGCM_sys_ncdiff" --$@2085 IGCM_debug_PushStack "IGCM_sys_ncdiff" $@ 2060 2086 if ( $DEBUG_sys ) ; then 2061 2087 echo "IGCM_sys_ncdiff :" $@ … … 2099 2125 #D- 2100 2126 function IGCM_sys_ncea { 2101 IGCM_debug_PushStack "IGCM_sys_ncea" --$@2127 IGCM_debug_PushStack "IGCM_sys_ncea" $@ 2102 2128 if ( $DEBUG_sys ) ; then 2103 2129 echo "IGCM_sys_ncea :" $@ … … 2141 2167 #D- 2142 2168 function IGCM_sys_ncecat { 2143 IGCM_debug_PushStack "IGCM_sys_ncecat" --$@2169 IGCM_debug_PushStack "IGCM_sys_ncecat" $@ 2144 2170 if ( $DEBUG_sys ) ; then 2145 2171 echo "IGCM_sys_ncecat :" $@ … … 2183 2209 #D- 2184 2210 function IGCM_sys_ncflint { 2185 IGCM_debug_PushStack "IGCM_sys_ncflint" --$@2211 IGCM_debug_PushStack "IGCM_sys_ncflint" $@ 2186 2212 if ( $DEBUG_sys ) ; then 2187 2213 echo "IGCM_sys_ncflint :" $@ … … 2225 2251 #D- 2226 2252 function IGCM_sys_ncks { 2227 IGCM_debug_PushStack "IGCM_sys_ncks" --$@2253 IGCM_debug_PushStack "IGCM_sys_ncks" $@ 2228 2254 if ( $DEBUG_sys ) ; then 2229 2255 echo "IGCM_sys_ncks :" $@ … … 2267 2293 #D- 2268 2294 function IGCM_sys_ncpdq { 2269 IGCM_debug_PushStack "IGCM_sys_ncpdq" --$@2295 IGCM_debug_PushStack "IGCM_sys_ncpdq" $@ 2270 2296 if ( $DEBUG_sys ) ; then 2271 2297 echo "IGCM_sys_ncpdq :" $@ … … 2309 2335 #D- 2310 2336 function IGCM_sys_ncra { 2311 IGCM_debug_PushStack "IGCM_sys_ncra" --$@2337 IGCM_debug_PushStack "IGCM_sys_ncra" $@ 2312 2338 if ( $DEBUG_sys ) ; then 2313 2339 echo "IGCM_sys_ncra :" $@ … … 2351 2377 #D- 2352 2378 function IGCM_sys_ncrcat { 2353 IGCM_debug_PushStack "IGCM_sys_ncrcat" --$@2379 IGCM_debug_PushStack "IGCM_sys_ncrcat" $@ 2354 2380 if ( $DEBUG_sys ) ; then 2355 2381 echo "IGCM_sys_ncrcat :" $@ … … 2403 2429 #D- 2404 2430 function IGCM_sys_ncrename { 2405 IGCM_debug_PushStack "IGCM_sys_ncrename" --$@2431 IGCM_debug_PushStack "IGCM_sys_ncrename" $@ 2406 2432 if ( $DEBUG_sys ) ; then 2407 2433 echo "IGCM_sys_ncrename :" $@ … … 2445 2471 #D- 2446 2472 function IGCM_sys_ncwa { 2447 IGCM_debug_PushStack "IGCM_sys_ncwa" --$@2473 IGCM_debug_PushStack "IGCM_sys_ncwa" $@ 2448 2474 if ( $DEBUG_sys ) ; then 2449 2475 echo "IGCM_sys_ncwa :" $@ … … 2490 2516 #D- 2491 2517 function IGCM_sys_cdo { 2492 IGCM_debug_PushStack "IGCM_sys_cdo" --$@2518 IGCM_debug_PushStack "IGCM_sys_cdo" $@ 2493 2519 if ( $DEBUG_sys ) ; then 2494 2520 echo "IGCM_sys_cdo :" $@
Note: See TracChangeset
for help on using the changeset viewer.