Ignore:
Timestamp:
03/13/09 17:33:37 (15 years ago)
Author:
brocksce
Message:

PB: - Reformat run.card

  • Add monitoring card analysis feature
  • Rename Script_Output
  • Remove obsolete comments in run.card.init
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/IGCM_add_out.awk

    r7 r57  
    1313#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC 
    1414# History: 
    15 # Modification: 
     15# Modification: Patrick.Brockmann@cea.fr 
    1616# 
    1717#************************************************************** 
     
    7676 
    7777  counter=0 
    78 #  StartTime=[] 
    79 #  EndTime=[] 
    80   Date_found=0 
    81  
    82  
    83 #   print ENVIRON["LC_ALL"] 
    84 #   ENVIRON["LC_ALL"]="fr_FR" 
    85 #   print ENVIRON["LC_ALL"] 
     78 
    8679} 
    8780 
     
    199192    } 
    200193 
    201     if( info=="Start Time (date)" ) { 
    202       StartTime[counter]=Res 
    203       next   
    204     } 
    205  
    206     if( info=="End   Time (date)" ) { 
    207       EndTime[counter]=Res 
    208       Information_found=0 
    209       next 
    210     } 
    211  
    212194  } 
    213195# Get information with time output on other hosts 
     
    245227 
    246228  } 
    247 # date end 
    248 # date begin 
    249   else if (Date_found == 0 && (match($0, "[a-z]+ *[a-z]+ *[0-9]+ *[0-9][0-9]:[0-9][0-9]:[0-9][0-9] *CET *[0-9]+"))) 
    250   { 
     229 
     230# RUN_DATE_BEGIN 
     231if ($0 ~ /RunDateBegin.*=/) { 
    251232    myprint( "start date" ) 
    252  
    253     Date_found=1 
    254     StartTime[counter]=$0 
    255  
    256   } 
    257   else if (Date_found == 1 && (match($0, "[a-z]+ *[a-z]+ *[0-9]+ *[0-9][0-9]:[0-9][0-9]:[0-9][0-9] *CET *[0-9]+"))) 
    258   { 
     233    split($0,a,"=") 
     234    RunDateBegin=a[2] 
     235} 
     236 
     237# RUN_DATE_END 
     238if ($0 ~ /RunDateEnd.*=/) { 
    259239    myprint( "end date" ) 
    260  
    261     EndTime[counter]=$0 
    262  
    263     exit 
    264  
     240    split($0,a,"=") 
     241    RunDateEnd=a[2] 
    265242  } 
    266243 
     
    293270 
    294271      myprint("Date of executables :") 
    295       for (i=1; i<=counter; i++) {   
    296         myprint("Start Time (date)      :" StartTime[i]) 
    297         myprint("End   Time (date)      :" EndTime[i]) 
    298       } 
    299       printf("%s , %s , %.5f , %.5f , %.5f", StartTime[counter], EndTime[counter], RealTime, UserTime, SysTime)  
     272      myprint("Start Time             :" RunDateBegin) 
     273      myprint("End   Time             :" RunDateEnd) 
     274 
     275      printf("%s %s %.5f %.5f %.5f", RunDateBegin, RunDateEnd, RealTime, UserTime, SysTime)  
    300276      exit(0) 
    301277    } 
Note: See TracChangeset for help on using the changeset viewer.