@@ -32,13 +32,15 @@ mutable struct DEStats
32
32
njacs:: Int
33
33
nnonliniter:: Int
34
34
nnonlinconvfail:: Int
35
+ nfpiter:: Int
36
+ nfpconvfail:: Int
35
37
ncondition:: Int
36
38
naccept:: Int
37
39
nreject:: Int
38
40
maxeig:: Float64
39
41
end
40
42
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 )
42
44
43
45
function Base. show (io:: IO , :: MIME"text/plain" , s:: DEStats )
44
46
println (io, summary (s))
@@ -49,6 +51,8 @@ function Base.show(io::IO, ::MIME"text/plain", s::DEStats)
49
51
@printf io " %-50s %-d\n " " Number of Jacobians created:" s. njacs
50
52
@printf io " %-50s %-d\n " " Number of nonlinear solver iterations:" s. nnonliniter
51
53
@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
52
56
@printf io " %-50s %-d\n " " Number of rootfind condition calls:" s. ncondition
53
57
@printf io " %-50s %-d\n " " Number of accepted steps:" s. naccept
54
58
@printf io " %-50s %-d" " Number of rejected steps:" s. nreject
@@ -64,6 +68,8 @@ function Base.merge(a::DEStats, b::DEStats)
64
68
a. njacs + b. njacs,
65
69
a. nnonliniter + b. nnonliniter,
66
70
a. nnonlinconvfail + b. nnonlinconvfail,
71
+ a. nfpiter + b. nfpiter,
72
+ a. nfpconvfail + b. nfpconvfail,
67
73
a. ncondition + b. ncondition,
68
74
a. naccept + b. naccept,
69
75
a. nreject + b. nreject,
0 commit comments