Skip to content

Commit e2627a4

Browse files
Save dts and sol.stats into WorkPrecision
1 parent f23cf22 commit e2627a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/benchmark.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ mutable struct WorkPrecision
161161
reltols::Any
162162
errors::Any
163163
times::Any
164+
dts::Any
165+
stats::Any
164166
name::Any
165167
N::Int
166168
end
@@ -183,6 +185,7 @@ function WorkPrecision(prob, alg, abstols, reltols, dts = nothing;
183185
N = length(abstols)
184186
errors = Vector{Float64}(undef, N)
185187
times = Vector{Float64}(undef, N)
188+
stats = Vector{SciMLBase.DEStats}(undef, N)
186189
if name === nothing
187190
name = "WP-Alg"
188191
end
@@ -210,6 +213,8 @@ function WorkPrecision(prob, alg, abstols, reltols, dts = nothing;
210213
dense_errors = dense_errors)
211214
end
212215

216+
stats[i] = sol.stats
217+
213218
if haskey(kwargs, :prob_choice)
214219
cur_appxsol = appxsol[kwargs[:prob_choice]]
215220
elseif prob isa AbstractArray
@@ -270,7 +275,7 @@ function WorkPrecision(prob, alg, abstols, reltols, dts = nothing;
270275
end
271276
end
272277
end
273-
return WorkPrecision(prob, abstols, reltols, errors, times, name, N)
278+
return WorkPrecision(prob, abstols, reltols, errors, times, dts, stats, name, N)
274279
end
275280

276281
# Work precision information for a BVP

0 commit comments

Comments
 (0)