Skip to content

Commit c8e16c4

Browse files
committed
improve tests
1 parent 388e1b1 commit c8e16c4

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/OrdinaryDiffEqStabilizedRK/src/rkc_perform_step.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ end
313313
@.. broadcast=false uᵢ₋₁=uprev + (dt * recf[ccache.start]) * fsalfirst
314314
ccache.mdeg < 2 && (@.. broadcast=false u=uᵢ₋₁)
315315
# for the second to the ccache.mdeg th stages
316+
@show ccache.mdeg
316317
for i in 2:(ccache.mdeg)
317318
μ, κ = recf[ccache.start + (i - 2) * 2 + 1], recf[ccache.start + (i - 2) * 2 + 2]
318319
ν = -1 - κ

lib/OrdinaryDiffEqStabilizedRK/test/rkc_tests.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,25 @@ end
7373
end
7474
end
7575

76-
@testset "Numer of function evaluations" begin
76+
@testset "Number of function evaluations" begin
7777
x = Ref(0)
7878
u0 = [1.0, 1.0]
7979
tspan = (0.0, 1.0)
8080
probop = ODEProblem(u0, tspan) do u, p, t
8181
x[] += 1
82-
return -5 * u
82+
return -500 * u
8383
end
8484
probip = ODEProblem(u0, tspan) do du, u, p, t
8585
x[] += 1
86-
@. du = -5 * u
86+
@. du = -500 * u
8787
return nothing
8888
end
8989

9090
@testset "$prob" for prob in [probop, probip]
91-
eigen_est = (integrator) -> integrator.eigen_est = 5
91+
eigen_est = (integrator) -> integrator.eigen_est = 500
9292
algs = [ROCK2(), ROCK2(eigen_est = eigen_est),
9393
ROCK4(), ROCK4(eigen_est = eigen_est),
94-
RKC(), RKC(eigen_est = eigen_est),
94+
RKC(), RKC(eigen_est = eigen_est),
9595
SERK2(), SERK2(eigen_est = eigen_est),
9696
ESERK4(), ESERK4(eigen_est = eigen_est),
9797
ESERK5(), ESERK5(eigen_est = eigen_est)]

0 commit comments

Comments
 (0)