Skip to content

Commit 4723d73

Browse files
committed
FDS Validation: Update timing script
1 parent c42dd51 commit 4723d73

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Validation/Compile_Timings.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@
22
import glob
33
import re
44

5-
print("Series,Case,Wall Clock Time (h),Processes,CPU hours")
5+
print("Series,Case,Wall Clock Time (h),Processes,CPU hours,Git Hash,Date")
66
files = glob.glob('*/Current_Results/*.out')
77
for file in files:
88
with open(file, 'r') as f:
99
for line in f:
1010
if re.search("Number of MPI Processes", line):
1111
np = line[27:30]
12+
if re.search("Revision :", line):
13+
githash = line[20:60]
14+
if re.search("Revision Date", line):
15+
revdate = line[20:60]
1216
if re.search("Total Elapsed", line):
1317
file_name=re.sub("/Current_Results/",",",f.name)
1418
file_name2=re.sub(".out","",file_name)
15-
print(file_name2,",",float(line[36:48])/3600,",",int(np),",",int(np)*float(line[36:48])/3600)
19+
print(file_name2,",",float(line[36:48])/3600,",",int(np),",",int(np)*float(line[36:48])/3600,",",githash.rstrip(),",",revdate.rstrip())
1620

0 commit comments

Comments
 (0)