Changeset 57 for trunk/libIGCM/libIGCM_sys
- Timestamp:
- 03/13/09 17:33:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_sys/IGCM_add_out.awk
r7 r57 13 13 # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC 14 14 # History: 15 # Modification: 15 # Modification: Patrick.Brockmann@cea.fr 16 16 # 17 17 #************************************************************** … … 76 76 77 77 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 86 79 } 87 80 … … 199 192 } 200 193 201 if( info=="Start Time (date)" ) {202 StartTime[counter]=Res203 next204 }205 206 if( info=="End Time (date)" ) {207 EndTime[counter]=Res208 Information_found=0209 next210 }211 212 194 } 213 195 # Get information with time output on other hosts … … 245 227 246 228 } 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 231 if ($0 ~ /RunDateBegin.*=/) { 251 232 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 238 if ($0 ~ /RunDateEnd.*=/) { 259 239 myprint( "end date" ) 260 261 EndTime[counter]=$0 262 263 exit 264 240 split($0,a,"=") 241 RunDateEnd=a[2] 265 242 } 266 243 … … 293 270 294 271 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) 300 276 exit(0) 301 277 }
Note: See TracChangeset
for help on using the changeset viewer.