Skip to content

Commit d95648d

Browse files
format
1 parent b534b0c commit d95648d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

lib/NonlinearSolveBase/src/polyalg.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ end
6464
function SII.symbolic_container(cache::NonlinearSolvePolyAlgorithmCache)
6565
return cache.caches[cache.current]
6666
end
67-
SII.state_values(cache::NonlinearSolvePolyAlgorithmCache) = SII.state_values(SII.symbolic_container(cache))
67+
function SII.state_values(cache::NonlinearSolvePolyAlgorithmCache)
68+
SII.state_values(SII.symbolic_container(cache))
69+
end
6870

6971
function Base.show(io::IO, ::MIME"text/plain", cache::NonlinearSolvePolyAlgorithmCache)
7072
println(io, "NonlinearSolvePolyAlgorithmCache with \

lib/NonlinearSolveBase/src/solve.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ end
103103
return Expr(:block, calls...)
104104
end
105105

106-
function SciMLBase.__solve(prob::AbstractNonlinearProblem, alg::NonlinearSolvePolyAlgorithm,
106+
function SciMLBase.__solve(
107+
prob::AbstractNonlinearProblem, alg::NonlinearSolvePolyAlgorithm,
107108
args...; kwargs...)
108-
__generated_polysolve(prob, alg, args...; kwargs...)
109+
__generated_polysolve(prob, alg, args...; kwargs...)
109110
end
110111

111112
@generated function __generated_polysolve(

test/mtk_cache_indexing_tests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
@testset "$integtype" for (alg, integtype) in [
1515
(NewtonRaphson(), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache),
16-
(FastShortcutNonlinearPolyalg(), NonlinearSolveBase.NonlinearSolvePolyAlgorithmCache),
16+
(FastShortcutNonlinearPolyalg(),
17+
NonlinearSolveBase.NonlinearSolvePolyAlgorithmCache),
1718
(SimpleNewtonRaphson(), NonlinearSolveBase.NonlinearSolveNoInitCache)
1819
]
1920
nint = init(nlprob, alg)

0 commit comments

Comments
 (0)