Changeset 773


Ignore:
Timestamp:
01/26/13 18:45:39 (11 years ago)
Author:
sdipsl
Message:

Cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r768 r773  
    713713    echo "IGCM_sys_QsubPost :" $@ 
    714714  fi 
    715   MY_PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 )  
     715  MY_PROJECT=$(echo ${BRIDGE_MSUB_PROJECT} | cut -d@ -f1 ) 
    716716  /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 
    717717  if [ $? -gt 0 ] ; then 
     
    848848  fi 
    849849 
    850   typeset status DEST 
     850  typeset status 
    851851 
    852852  mkdir -p ${HOME}/MIRROR/${PATHlibIGCM} 
     
    13651365  fi 
    13661366 
    1367   typeset NB_ESSAI DELAI status i exist skip  
     1367  typeset NB_ESSAI DELAI status i exist skip 
    13681368 
    13691369  # number of tentative 
     
    14511451  IGCM_debug_PushStack "IGCM_sys_Get" $@ 
    14521452 
    1453   typeset DEST dm_liste ifile target file_work 
     1453  typeset DEST dm_liste target file_work 
    14541454  typeset NB_ESSAI DELAI status i 
    14551455 
     
    16021602  IGCM_debug_PushStack "IGCM_sys_GetBuffer" $@ 
    16031603 
    1604   typeset DEST buf_liste ifile target file_work 
     1604  typeset DEST buf_liste target file_work 
    16051605  typeset NB_ESSAI DELAI status i 
    16061606 
     
    16921692  eval ${2}=${dateF[5]} 
    16931693 
    1694     # donne la date filesys d'un fichier sur la machine work 
     1694  # donne la date filesys d'un fichier sur la machine work 
    16951695  IGCM_debug_PopStack "IGCM_sys_FichWork" 
    16961696} 
     
    18671867 
    18681868  if [ ${status} -gt 0 ] ; then 
    1869     echo "IGCM_sys_rebuild : rebuild error" 
     1869    echo "IGCM_sys_rebuild : rebuild error code is ${status}" 
    18701870    IGCM_debug_Exit "rebuild" 
    18711871  fi 
     
    18821882  list_opt=$@ 
    18831883 
    1884   # Invert Axis : t,x -> x,t  
     1884  # Invert Axis : t,x -> x,t 
    18851885  #               t,pres,x -> x,t,pres 
    18861886  # So that we can concatenate along x 
     
    19451945#      j3=${proc_stn[${iStation}]} 
    19461946      # Extract station 
    1947       # Invert Axis : t,x -> x,t  
     1947      # Invert Axis : t,x -> x,t 
    19481948      #               t,pres,x -> x,t,pres 
    19491949      # So that we can concatenate along x 
     
    20282028      eval ExeNameOut=\${config_Executable_${comp}[1]} 
    20292029 
    2030         # for CPL component only 
     2030      # for CPL component only 
    20312031      if [ "X${comp}" = "XCPL" ] ; then 
    20322032 
     
    20442044      eval ExeNameOut=\${config_Executable_${comp}[1]} 
    20452045 
    2046         # Only if we really have an executable for the component and not the coupler ie oasis: 
     2046      # Only if we really have an executable for the component and not the coupler ie oasis: 
    20472047      if ( [ "X${ExeNameOut}" != X\"\" ] && [ "X${comp}" != "XCPL" ] ) ; then 
    20482048 
     
    21232123} 
    21242124 
     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 
     2132function 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 
    21252148############################################################## 
    21262149# NCO OPERATOR 
     
    26432666  IGCM_debug_PopStack "IGCM_sys_cdo" 
    26442667} 
    2645  
    2646 #D-#================================================== 
    2647 #D-function IGCM_sys_CountJobInQueue 
    2648 #D-* Purpose: Check if job_name is currently  
    2649 #D-  running or in queue 
    2650 #D-* Examples: IGCM_sys_CountJobInQueue ${JobName} NbRun 
    2651 #D- 
    2652  
    2653 function IGCM_sys_CountJobInQueue { 
    2654   IGCM_debug_PushStack "IGCM_sys_CountJobInQueue" 
    2655   if ( $DEBUG_sys ) ; then 
    2656     echo "IGCM_sys_CountJobInQueue" 
    2657   fi 
    2658  
    2659   #NbRun=$( ccc_mstat -f | grep -c ${JobName} ) 
    2660  
    2661   # With -f option, the full job name is given in the last column 
    2662   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.