1 """Analyze information from the linear solver"""
2
3 import re
4
5 linearRegExp="^(.+): Solving for (.+), Initial residual = (.+), Final residual = (.+), No Iterations (.+)$"
6
7
8
9
10 from GeneralLineAnalyzer import GeneralLineAnalyzer
11
13 """Parses for information about the linear solver
14
15 Files of the form linear_<var> are written, where <var> is the
16 variable for which the solver was used"""
17
18 - def __init__(self,doTimelines=True,doFiles=True):
25
27 solver=match.groups()[0]
28 name=match.groups()[1]
29 rest=match.groups()[2:]
30 self.files.write("linear_"+name,self.getTime(),rest)
31
33 name=match.groups()[1]
34 resid=match.groups()[2]
35 final=match.groups()[3]
36 iter=match.groups()[4]
37
38 self.lines.setValue(name,resid)
39 self.lines.setValue(name+"_final",final)
40 self.lines.setValue(name+"_iterations",iter)
41
43 """Parses information about the linear solver and collects the iterations"""
44
45 - def __init__(self,doTimelines=True,doFiles=True):
47
49 pass
50
52 name=match.groups()[1]
53 resid=match.groups()[4]
54
55 self.lines.setValue(name,resid)
56
57
59 """Parses for information about the linear solver
60
61 Files of the form linear_<var> are written, where <var> is the
62 variable for which the solver was used"""
63
66
67
68
69
70
71
72
73
74
75
76
78 """Parses for imformation about the linear solver and collects the residuals in timelines"""
79
82
83
84
85
86
87
88
89
90
91
92
93
94
96 """Parses for imformation about the linear solver and collects the iterations in timelines"""
97
100
101
102
103
104
105
106
107
108
109
110
111
112