Skip to content

Commit ee86a52

Browse files
committed
Fix trimming error for __init
This would perhaps have been caught by #665 but we're waiting on 1.12-rc2 and SciML/SciMLBase.jl#1074 to land before this would be automatically checked.
1 parent b37b31b commit ee86a52

File tree

1 file changed

+2
-2
lines changed
  • lib/NonlinearSolveFirstOrder/src

1 file changed

+2
-2
lines changed

lib/NonlinearSolveFirstOrder/src/solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ function SciMLBase.__init(
124124
prob::AbstractNonlinearProblem, alg::GeneralizedFirstOrderAlgorithm, args...;
125125
stats = NLStats(0, 0, 0, 0, 0), alias_u0 = false, maxiters = 1000,
126126
abstol = nothing, reltol = nothing, maxtime = nothing,
127-
termination_condition = nothing, internalnorm = L2_NORM,
127+
termination_condition = nothing, internalnorm::F = L2_NORM,
128128
linsolve_kwargs = (;), initializealg = NonlinearSolveBase.NonlinearSolveDefaultInit(), kwargs...
129-
)
129+
) where {F}
130130
@set! alg.autodiff = NonlinearSolveBase.select_jacobian_autodiff(prob, alg.autodiff)
131131
provided_jvp_autodiff = alg.jvp_autodiff !== nothing
132132
@set! alg.jvp_autodiff = if !provided_jvp_autodiff && alg.autodiff !== nothing &&

0 commit comments

Comments
 (0)