@@ -161,6 +161,8 @@ mutable struct WorkPrecision
161
161
reltols:: Any
162
162
errors:: Any
163
163
times:: Any
164
+ dts:: Any
165
+ stats:: Any
164
166
name:: Any
165
167
N:: Int
166
168
end
@@ -183,6 +185,7 @@ function WorkPrecision(prob, alg, abstols, reltols, dts = nothing;
183
185
N = length (abstols)
184
186
errors = Vector {Float64} (undef, N)
185
187
times = Vector {Float64} (undef, N)
188
+ stats = Vector {SciMLBase.DEStats} (undef, N)
186
189
if name === nothing
187
190
name = " WP-Alg"
188
191
end
@@ -210,6 +213,8 @@ function WorkPrecision(prob, alg, abstols, reltols, dts = nothing;
210
213
dense_errors = dense_errors)
211
214
end
212
215
216
+ stats[i] = sol. stats
217
+
213
218
if haskey (kwargs, :prob_choice )
214
219
cur_appxsol = appxsol[kwargs[:prob_choice ]]
215
220
elseif prob isa AbstractArray
@@ -270,7 +275,7 @@ function WorkPrecision(prob, alg, abstols, reltols, dts = nothing;
270
275
end
271
276
end
272
277
end
273
- return WorkPrecision (prob, abstols, reltols, errors, times, name, N)
278
+ return WorkPrecision (prob, abstols, reltols, errors, times, dts, stats, name, N)
274
279
end
275
280
276
281
# Work precision information for a BVP
0 commit comments