@@ -108,12 +108,10 @@ end
108
108
109
109
Return the time values that correspond to the saved values of the [`errors`](@ref) and [`integrals`](@ref).
110
110
"""
111
- function tstops (cb:: DiscreteCallback {
112
- Condition,
113
- Affect!
114
- }) where {Condition,
115
- Affect! < :
116
- AnalysisCallback}
111
+ function tstops (cb:: DiscreteCallback {Condition,
112
+ Affect!}) where {Condition,
113
+ Affect! < :
114
+ AnalysisCallback}
117
115
analysis_callback = cb. affect!
118
116
return analysis_callback. tstops
119
117
end
@@ -124,12 +122,10 @@ end
124
122
Return the computed errors for each timestep as a named tuple.
125
123
The shape of each entry is (nvariables, ntimesteps).
126
124
"""
127
- function errors (cb:: DiscreteCallback {
128
- Condition,
129
- Affect!
130
- }) where {Condition,
131
- Affect! < :
132
- AnalysisCallback}
125
+ function errors (cb:: DiscreteCallback {Condition,
126
+ Affect!}) where {Condition,
127
+ Affect! < :
128
+ AnalysisCallback}
133
129
analysis_callback = cb. affect!
134
130
names = collect (analysis_callback. analysis_errors)
135
131
# "transpose" vector of matrices, first write it as 3d array and then convert it back to vector of matrices
@@ -144,12 +140,10 @@ end
144
140
145
141
Return the computed integrals for each timestep as a named tuple.
146
142
"""
147
- function integrals (cb:: DiscreteCallback {
148
- Condition,
149
- Affect!
150
- }) where {Condition,
151
- Affect! < :
152
- AnalysisCallback}
143
+ function integrals (cb:: DiscreteCallback {Condition,
144
+ Affect!}) where {Condition,
145
+ Affect! < :
146
+ AnalysisCallback}
153
147
analysis_callback = cb. affect!
154
148
names = collect (Symbol .(nameof .(analysis_callback. analysis_integrals)))
155
149
# "transpose" vector of vector
0 commit comments