Skip to content

Commit 96bf58b

Browse files
Merge pull request #630 from H-Sax/master
Update stats field
2 parents db0d386 + 17ac37d commit 96bf58b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/solutions/ode_solutions.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ mutable struct DEStats
3232
njacs::Int
3333
nnonliniter::Int
3434
nnonlinconvfail::Int
35+
nfpiter::Int
36+
nfpconvfail::Int
3537
ncondition::Int
3638
naccept::Int
3739
nreject::Int
3840
maxeig::Float64
3941
end
4042

41-
DEStats(x::Int = -1) = DEStats(x, x, x, x, x, x, x, x, x, x, 0.0)
43+
DEStats(x::Int = -1) = DEStats(x, x, x, x, x, x, x, x, x, x, x, x, 0.0)
4244

4345
function Base.show(io::IO, ::MIME"text/plain", s::DEStats)
4446
println(io, summary(s))
@@ -49,6 +51,8 @@ function Base.show(io::IO, ::MIME"text/plain", s::DEStats)
4951
@printf io "%-50s %-d\n" "Number of Jacobians created:" s.njacs
5052
@printf io "%-50s %-d\n" "Number of nonlinear solver iterations:" s.nnonliniter
5153
@printf io "%-50s %-d\n" "Number of nonlinear solver convergence failures:" s.nnonlinconvfail
54+
@printf io "%-60s %-d\n" "Number of fixed-point solver iterations:" s.nfpiter
55+
@printf io "%-60s %-d\n" "Number of fixed-point solver convergence failures:" s.nfpconvfail
5256
@printf io "%-50s %-d\n" "Number of rootfind condition calls:" s.ncondition
5357
@printf io "%-50s %-d\n" "Number of accepted steps:" s.naccept
5458
@printf io "%-50s %-d" "Number of rejected steps:" s.nreject
@@ -64,6 +68,8 @@ function Base.merge(a::DEStats, b::DEStats)
6468
a.njacs + b.njacs,
6569
a.nnonliniter + b.nnonliniter,
6670
a.nnonlinconvfail + b.nnonlinconvfail,
71+
a.nfpiter + b.nfpiter,
72+
a.nfpconvfail + b.nfpconvfail,
6773
a.ncondition + b.ncondition,
6874
a.naccept + b.naccept,
6975
a.nreject + b.nreject,

0 commit comments

Comments
 (0)