Skip to content

Commit 69b7d16

Browse files
author
Michele Mesiti
committed
Format ABM subdirectory
Run the reformatting command suggested in CONTRIBUTING.md, but keeping only the changes on the ABM directory (which my current PR is affecting)
1 parent 23c054b commit 69b7d16

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

lib/OrdinaryDiffEqAdamsBashforthMoulton/src/adams_bashforth_moulton_perform_step.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ end
303303
t4 .= k4
304304
perform_step!(integrator,
305305
AB4Cache(u, uprev, fsalfirst, t2, t3, t4, ralk2, k, tmp, t5, t6, t7,
306-
cnt,thread))
306+
cnt, thread))
307307
k = integrator.fsallast
308308
@.. broadcast=false thread=thread u=uprev +
309309
(dt / 24) * (9 * k + 19 * k1 - 5 * k2 + k3)

lib/OrdinaryDiffEqAdamsBashforthMoulton/test/regression_test_threading.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@ using OrdinaryDiffEqAdamsBashforthMoulton, ODEProblemLibrary
22
using Test
33
using Static
44

5-
free_timestep_algorithms = [ VCAB3, VCAB4, VCAB5, VCABM3, VCABM4, VCABM5, VCABM]
5+
free_timestep_algorithms = [VCAB3, VCAB4, VCAB5, VCABM3, VCABM4, VCABM5, VCABM]
66

7-
fixed_timestep_algorithms = [AB3,AB4, AB5, ABM32, ABM43, ABM54]
7+
fixed_timestep_algorithms = [AB3, AB4, AB5, ABM32, ABM43, ABM54]
88

99
problem = ODEProblemLibrary.prob_ode_linear
1010

1111
function test_alg(ALG; kwargs...)
12-
sol_thread = solve(problem, ALG(Static.True()); kwargs...)
13-
sol_nothread = solve(problem, ALG(Static.False()); kwargs...)
12+
sol_thread = solve(problem, ALG(Static.True()); kwargs...)
13+
sol_nothread = solve(problem, ALG(Static.False()); kwargs...)
1414

15-
@test all(sol_nothread .== sol_thread)
15+
@test all(sol_nothread .== sol_thread)
1616
end
1717

18-
1918
@testset "Regression test for threading versions vs non threading versions" begin
2019
@testset "$ALG" for ALG in fixed_timestep_algorithms
21-
test_alg(ALG, dt=1//2^9)
20+
test_alg(ALG, dt = 1 // 2^9)
2221
end
2322
@testset "$ALG" for ALG in free_timestep_algorithms
2423
test_alg(ALG)
2524
end
26-
2725
end

lib/OrdinaryDiffEqAdamsBashforthMoulton/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ using SafeTestsets
22

33
@time @safetestset "ABM Convergence Tests" include("abm_convergence_tests.jl")
44
@time @safetestset "Adams Variable Coefficients Tests" include("adams_tests.jl")
5-
@time @safetestset "Regression test for threading versions vs non threading versions" include("regression_test_threading.jl")
5+
@time @safetestset "Regression test for threading versions vs non threading versions" include("regression_test_threading.jl")

0 commit comments

Comments
 (0)