1
2 """Analyze information from the linear solver"""
3
4 import re
5
6 linearRegExp="^(.+): Solving for (.+), Initial residual = (.+), Final residual = (.+), No Iterations (.+)$"
7
8
9
10
11 from GeneralLineAnalyzer import GeneralLineAnalyzer
12
14 """Parses for information about the linear solver
15
16 Files of the form linear_<var> are written, where <var> is the
17 variable for which the solver was used"""
18
19 - def __init__(self,
20 doTimelines=True,
21 doFiles=True,
22 singleFile=False,
23 startTime=None,
24 endTime=None):
37
39 solver=match.groups()[0]
40 name=match.groups()[1]
41 rest=match.groups()[2:]
42 self.files.write("linear_"+name,self.getTime(),rest)
43
57
59 """Parses information about the linear solver and collects the iterations"""
60
61 - def __init__(self,
62 doTimelines=True,
63 doFiles=True,
64 singleFile=False,
65 startTime=None,
66 endTime=None):
73
76
83
84
86 """Parses for information about the linear solver
87
88 Files of the form linear_<var> are written, where <var> is the
89 variable for which the solver was used"""
90
93
95 """Parses for imformation about the linear solver and collects the residuals in timelines"""
96
99
101 """Parses for information about the linear solver and collects the iterations in timelines"""
102
105