12def fFileExist(filename):
13 '''Test if file exists'''
16 oFile = open(filename)
25 '''read time from output files'''
27 filename =
'output/output-' + optlevel +
'.dat'
28 if fFileExist(filename) == 0:
29 print(
'missing ' + filename)
31 CDCLegendreTracking = []
35 if line.startswith(
'CDCLegendreTracking'):
37 CDCLegendreTracking.append(float(words[6]))
39 print(optlevel +
' read')
41 fobj = open(
'out/' + optlevel +
'.out',
'w')
42 for i
in range(0, len(CDCLegendreTracking)):
43 fobj.write(str(CDCLegendreTracking[i]) +
'\n')
48optlevel = [
'gcc-O0',
'gcc-O3',
'gcc-O3-native']