Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
devmotion and github-actions[bot] authored Nov 28, 2024
1 parent b77a021 commit 11b94cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/terminatesteadystate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ function allDerivPass(integrator, abstol, reltol, min_t)
Iterators.cycle(reltol), integrator.u)) &&
(return false)
else
any((abs.(testval) .> abstol) .|| (abs.(testval) .> reltol .* abs.(integrator.u))) &&
any((abs.(testval) .> abstol) .||
(abs.(testval) .> reltol .* abs.(integrator.u))) &&
(return false)
end

return true
end

struct WrappedTest{T,A,R,M}
struct WrappedTest{T, A, R, M}
test::T
abstol::A
reltol::R
Expand Down Expand Up @@ -72,7 +73,7 @@ the [Steady State Solvers](https://docs.sciml.ai/DiffEqDocs/stable/solvers/stead
to terminate.
"""
function TerminateSteadyState(abstol = 1e-8, reltol = 1e-6, test::T = allDerivPass;
min_t = nothing, wrap_test::Val{WT} = Val(true)) where {T,WT}
min_t = nothing, wrap_test::Val{WT} = Val(true)) where {T, WT}
condition = if WT
WrappedTest(test, abstol, reltol, min_t)
else
Expand Down

0 comments on commit 11b94cc

Please sign in to comment.