Skip to content

Commit

Permalink
Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Nov 3, 2023
1 parent 5bcf372 commit ea824d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ struct SSRootfind{F} <: SteadyStateDiffEqAlgorithm
nlsolve::F
end
function SSRootfind(;
nlsolve = (f, u0, abstol) -> (NLsolve.nlsolve(f, u0,
ftol = abstol)))
nlsolve = (f, u0, abstol) -> (NLsolve.nlsolve(f, u0,
ftol = abstol)))
SSRootfind(nlsolve)
end

Expand Down Expand Up @@ -44,9 +44,9 @@ struct DynamicSS{A, AT, RT, TS, TC <: NLSolveTerminationCondition} <:
end

function DynamicSS(alg; abstol = 1e-8, reltol = 1e-6, tspan = Inf,
termination_condition = NLSolveTerminationCondition(NLSolveTerminationMode.SteadyStateDefault;
abstol,
reltol))
termination_condition = NLSolveTerminationCondition(NLSolveTerminationMode.SteadyStateDefault;
abstol,
reltol))
DynamicSS(alg, abstol, reltol, tspan, termination_condition)
end

Expand Down
8 changes: 4 additions & 4 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ function DiffEqBase.prepare_alg(alg::DynamicSS)
end

function DiffEqBase.__solve(prob::DiffEqBase.AbstractSteadyStateProblem,
alg::SteadyStateDiffEqAlgorithm, args...;
abstol = 1e-8, kwargs...)
alg::SteadyStateDiffEqAlgorithm, args...;
abstol = 1e-8, kwargs...)
@warn """
This method is deprecated in favor of using NonlinearSolve.jl. Note that an ODEProblem
can be converted into a steady state NonlinearProblem via
Expand Down Expand Up @@ -78,8 +78,8 @@ function DiffEqBase.__solve(prob::DiffEqBase.AbstractSteadyStateProblem,
end

function DiffEqBase.__solve(prob::DiffEqBase.AbstractSteadyStateProblem,
alg::DynamicSS, args...; save_everystep = false,
save_start = false, save_idxs = nothing, kwargs...)
alg::DynamicSS, args...; save_everystep = false,
save_start = false, save_idxs = nothing, kwargs...)
tspan = alg.tspan isa Tuple ? alg.tspan :
convert.(DiffEqBase.value(real(eltype(prob.u0))),
(DiffEqBase.value(zero(alg.tspan)), alg.tspan))
Expand Down

0 comments on commit ea824d4

Please sign in to comment.