Changeset 773
- Timestamp:
- 01/26/13 18:45:39 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh
r768 r773 713 713 echo "IGCM_sys_QsubPost :" $@ 714 714 fi 715 MY_PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 715 MY_PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 716 716 /usr/bin/ccc_msub -Q normal -A ${MY_PROJECT} -o ${POST_DIR}/${Script_Post_Output}.out -e ${POST_DIR}/${Script_Post_Output}.out ${libIGCM_POST}/$1.job 717 717 if [ $? -gt 0 ] ; then … … 848 848 fi 849 849 850 typeset status DEST850 typeset status 851 851 852 852 mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} … … 1365 1365 fi 1366 1366 1367 typeset NB_ESSAI DELAI status i exist skip 1367 typeset NB_ESSAI DELAI status i exist skip 1368 1368 1369 1369 # number of tentative … … 1451 1451 IGCM_debug_PushStack "IGCM_sys_Get" $@ 1452 1452 1453 typeset DEST dm_liste ifiletarget file_work1453 typeset DEST dm_liste target file_work 1454 1454 typeset NB_ESSAI DELAI status i 1455 1455 … … 1602 1602 IGCM_debug_PushStack "IGCM_sys_GetBuffer" $@ 1603 1603 1604 typeset DEST buf_liste ifiletarget file_work1604 typeset DEST buf_liste target file_work 1605 1605 typeset NB_ESSAI DELAI status i 1606 1606 … … 1692 1692 eval ${2}=${dateF[5]} 1693 1693 1694 1694 # donne la date filesys d'un fichier sur la machine work 1695 1695 IGCM_debug_PopStack "IGCM_sys_FichWork" 1696 1696 } … … 1867 1867 1868 1868 if [ ${status} -gt 0 ] ; then 1869 echo "IGCM_sys_rebuild : rebuild error "1869 echo "IGCM_sys_rebuild : rebuild error code is ${status}" 1870 1870 IGCM_debug_Exit "rebuild" 1871 1871 fi … … 1882 1882 list_opt=$@ 1883 1883 1884 # Invert Axis : t,x -> x,t 1884 # Invert Axis : t,x -> x,t 1885 1885 # t,pres,x -> x,t,pres 1886 1886 # So that we can concatenate along x … … 1945 1945 # j3=${proc_stn[${iStation}]} 1946 1946 # Extract station 1947 # Invert Axis : t,x -> x,t 1947 # Invert Axis : t,x -> x,t 1948 1948 # t,pres,x -> x,t,pres 1949 1949 # So that we can concatenate along x … … 2028 2028 eval ExeNameOut=\${config_Executable_${comp}[1]} 2029 2029 2030 2030 # for CPL component only 2031 2031 if [ "X${comp}" = "XCPL" ] ; then 2032 2032 … … 2044 2044 eval ExeNameOut=\${config_Executable_${comp}[1]} 2045 2045 2046 2046 # Only if we really have an executable for the component and not the coupler ie oasis: 2047 2047 if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${comp}" != "XCPL" ] ) ; then 2048 2048 … … 2123 2123 } 2124 2124 2125 #D-#================================================== 2126 #D-function IGCM_sys_CountJobInQueue 2127 #D-* Purpose: Check if job_name is currently 2128 #D- running or in queue 2129 #D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 2130 #D- 2131 2132 function IGCM_sys_CountJobInQueue { 2133 IGCM_debug_PushStack "IGCM_sys_CountJobInQueue" 2134 if ( $DEBUG_sys ) ; then 2135 echo "IGCM_sys_CountJobInQueue" 2136 fi 2137 2138 #NbRun=$( ccc_mstat -f | grep -c ${JobName} ) 2139 2140 # With -f option, the full job name is given in the last column 2141 NbRun=$( ccc_mstat -f | gawk -v JobName=$1 'BEGIN { x=0 } ($NF~String) { x=x+1 } END { print x }' ) 2142 2143 eval ${2}=${NbRun} 2144 2145 IGCM_debug_PopStack "IGCM_sys_CountJobInQueue" 2146 } 2147 2125 2148 ############################################################## 2126 2149 # NCO OPERATOR … … 2643 2666 IGCM_debug_PopStack "IGCM_sys_cdo" 2644 2667 } 2645 2646 #D-#==================================================2647 #D-function IGCM_sys_CountJobInQueue2648 #D-* Purpose: Check if job_name is currently2649 #D- running or in queue2650 #D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun2651 #D-2652 2653 function IGCM_sys_CountJobInQueue {2654 IGCM_debug_PushStack "IGCM_sys_CountJobInQueue"2655 if ( $DEBUG_sys ) ; then2656 echo "IGCM_sys_CountJobInQueue"2657 fi2658 2659 #NbRun=$( ccc_mstat -f | grep -c ${JobName} )2660 2661 # With -f option, the full job name is given in the last column2662 NbRun=$( ccc_mstat -f | gawk -v JobName=$1 'BEGIN { x=0 } ($NF~String) { x=x+1 } END { print x }' )2663 2664 eval ${2}=${NbRun}2665 2666 IGCM_debug_PopStack "IGCM_sys_CountJobInQueue"2667 }2668
Note: See TracChangeset
for help on using the changeset viewer.