Skip to content

Commit

Permalink
Update solve.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jul 30, 2024
1 parent 58de2b8 commit 94c9246
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ function __get_tspan(u0, tspan::Number)
(DiffEqBase.value(zero(tspan)), tspan))
end

infnorm(x) = norm(x,Inf)
function DiffEqBase.__solve(prob::DiffEqBase.AbstractSteadyStateProblem, alg::DynamicSS,
args...; abstol = 1e-8, reltol = 1e-6, odesolve_kwargs = (;),
save_idxs = nothing, termination_condition = NormTerminationMode(DiffEqBase.ODE_DEFAULT_NORM),
save_idxs = nothing, termination_condition = NormTerminationMode(infnorm),
kwargs...)
tspan = __get_tspan(prob.u0, alg)

Expand Down

0 comments on commit 94c9246

Please sign in to comment.