Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Nov 15, 2024
1 parent b534b0c commit d95648d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/NonlinearSolveBase/src/polyalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ end
function SII.symbolic_container(cache::NonlinearSolvePolyAlgorithmCache)
return cache.caches[cache.current]
end
SII.state_values(cache::NonlinearSolvePolyAlgorithmCache) = SII.state_values(SII.symbolic_container(cache))
function SII.state_values(cache::NonlinearSolvePolyAlgorithmCache)
SII.state_values(SII.symbolic_container(cache))
end

function Base.show(io::IO, ::MIME"text/plain", cache::NonlinearSolvePolyAlgorithmCache)
println(io, "NonlinearSolvePolyAlgorithmCache with \
Expand Down
5 changes: 3 additions & 2 deletions lib/NonlinearSolveBase/src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ end
return Expr(:block, calls...)
end

function SciMLBase.__solve(prob::AbstractNonlinearProblem, alg::NonlinearSolvePolyAlgorithm,
function SciMLBase.__solve(
prob::AbstractNonlinearProblem, alg::NonlinearSolvePolyAlgorithm,
args...; kwargs...)
__generated_polysolve(prob, alg, args...; kwargs...)
__generated_polysolve(prob, alg, args...; kwargs...)
end

@generated function __generated_polysolve(
Expand Down
3 changes: 2 additions & 1 deletion test/mtk_cache_indexing_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

@testset "$integtype" for (alg, integtype) in [
(NewtonRaphson(), NonlinearSolveFirstOrder.GeneralizedFirstOrderAlgorithmCache),
(FastShortcutNonlinearPolyalg(), NonlinearSolveBase.NonlinearSolvePolyAlgorithmCache),
(FastShortcutNonlinearPolyalg(),
NonlinearSolveBase.NonlinearSolvePolyAlgorithmCache),
(SimpleNewtonRaphson(), NonlinearSolveBase.NonlinearSolveNoInitCache)
]
nint = init(nlprob, alg)
Expand Down

0 comments on commit d95648d

Please sign in to comment.