Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic JuliaFormatter.jl run #65

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading