Skip to content

Commit 7ff6d31

Browse files
Merge pull request #158 from ChrisRackauckas/fix-formatting
Apply JuliaFormatter to fix code formatting
2 parents c7bde60 + 259a008 commit 7ff6d31

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

src/DiffEqDevTools.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export test_convergence, analyticless_test_convergence, appxtrue!, appxtrue
4646
export get_sample_errors
4747

4848
#Tab Functions
49-
export stability_region, residual_order_condition, check_tableau, imaginary_stability_interval
49+
export stability_region, residual_order_condition, check_tableau,
50+
imaginary_stability_interval
5051

5152
#Tableaus
5253
export deduce_Butcher_tableau

src/benchmark.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function Shootout(
9898
effs[i] = 1 / (errors[i] * times[i])
9999
end
100100
for j in 1:N, i in 1:N
101+
101102
effratios[i, j] = effs[i] / effs[j]
102103
end
103104
bestidx = findall((y) -> y == maximum(effs), effs)[1]
@@ -521,6 +522,7 @@ end
521522
dense_errors = false)
522523

523524
for j in 1:M, k in 1:N
525+
524526
_abstols = get(setups[k], :abstols, abstols)
525527
_reltols = get(setups[k], :reltols, reltols)
526528
_dts = get(setups[k], :dts, zeros(length(_abstols)))

src/plotrecipes.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ end
169169
y = ylims[1]:dy:ylims[2]
170170

171171
if order_star
172-
f = (u, v) -> abs(stability_region(u + v * im, tab; embedded = embedded) /
173-
exp(u + v * im)) < 1
172+
f = (u,
173+
v) -> abs(stability_region(u + v * im, tab; embedded = embedded) /
174+
exp(u + v * im)) < 1
174175
else
175176
f = (u, v) -> abs(stability_region(u + v * im, tab; embedded = embedded)) < 1
176177
end

src/tableau_info.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Calculates the length of the stability region in the real axis.
6767
See also [`imaginary_stability_interval`](@ref).
6868
"""
6969
function stability_region(tab_or_alg::Union{ODERKTableau, AbstractODEAlgorithm};
70-
initial_guess = -3.0, kw...)
70+
initial_guess = -3.0, kw...)
7171
residual! = function (resid, x)
7272
resid[1] = abs(stability_region(x[1], tab_or_alg)) - 1
7373
end
@@ -84,8 +84,8 @@ the size of the stability region on the imaginary axis.
8484
See also [`stability_region`](@ref).
8585
"""
8686
function imaginary_stability_interval(tab::ODERKTableau;
87-
initial_guess = length(tab) - one(eltype(tab.A)),
88-
kw...)
87+
initial_guess = length(tab) - one(eltype(tab.A)),
88+
kw...)
8989
residual! = function (resid, x)
9090
resid[1] = abs(stability_region(im * x[1], tab)) - 1
9191
end
@@ -102,8 +102,8 @@ the size of the stability region on the imaginary axis.
102102
See also [`stability_region`](@ref).
103103
"""
104104
function imaginary_stability_interval(alg::AbstractODEAlgorithm;
105-
initial_guess = 20.0,
106-
kw...)
105+
initial_guess = 20.0,
106+
kw...)
107107
residual! = function (resid, x)
108108
resid[1] = abs(stability_region(im * x[1], alg)) - 1
109109
end

test/stability_region_test.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ using OrdinaryDiffEq
88
@test @inferred(stability_region(constructTsitouras5()))@inferred(stability_region(Tsit5()))
99
@test @inferred(stability_region(constructSSPRK104()))@inferred(stability_region(SSPRK104()))
1010
@test @inferred(stability_region(constructImplicitEuler()))@inferred(stability_region(ImplicitEuler()))
11-
@test @inferred(abs(stability_region(nextfloat(typemin(Float64)), ImplicitEuler()))) < eps(Float64)
11+
@test @inferred(abs(stability_region(nextfloat(typemin(Float64)), ImplicitEuler()))) <
12+
eps(Float64)
1213

1314
@test @inferred(imaginary_stability_interval(constructSSPRK33()))sqrt(3)
1415
@test @inferred(imaginary_stability_interval(constructSSPRK33(Float32)))sqrt(3.0f0)

0 commit comments

Comments
 (0)