Skip to content

Commit ed77968

Browse files
committed
Fix stats for pseudotransient
Signed-off-by: ErikQQY <2283984853@qq.com>
1 parent 20e6a8b commit ed77968

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ NonlinearProblemLibrary = "0.1.2"
8383
OrdinaryDiffEq = "6.63"
8484
Pkg = "1"
8585
PrecompileTools = "1.2"
86-
Printf = "1.9"
86+
Printf = "1.10"
8787
Random = "1.91"
8888
RecursiveArrayTools = "3.2"
8989
Reexport = "1.2"

ext/NonlinearSolveSIAMFANLEquationsExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ end
2424
# pseudo transient continuation has a fixed cost per iteration, iteration statistics are
2525
# not interesting here.
2626
@inline function __siam_fanl_equations_stats_mapping(method, sol)
27-
(method === :pseudotransient) || (method === :anderson) && return nothing
27+
((method === :pseudotransient) || (method === :anderson)) && return nothing
2828
return SciMLBase.NLStats(sum(sol.stats.ifun), sum(sol.stats.ijac), 0, 0,
2929
sum(sol.stats.iarm))
3030
end

0 commit comments

Comments
 (0)