Skip to content

Commit

Permalink
Update tableau names in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Feb 10, 2021
1 parent 1ad5db6 commit 484c950
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/harmonic_oscillator_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const ref = [-0.012420428712136283, -0.35344429048339926]
@test_nowarn pdae_equs[:f̄](pdae.t₀, pdae.q₀[begin], pdae.p₀[begin], zero(pdae.p₀[begin]))


int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, ref) < 1E-4

Expand Down
4 changes: 2 additions & 2 deletions test/lorenz_attractor_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const ref = [-4.902687541134471, -3.743872921802973, 24.690858102790042]
@testset "$(rpad("Lorenz Attractor",80))" begin
ode = lorenz_attractor_ode()

sol = integrate(ode, TableauGLRK(1), Δt, nt)
sol = integrate(ode, TableauGauss(1), Δt, nt)
@test rel_err(sol.q, ref) < 4E-2

sol = integrate(ode, TableauGLRK(2), Δt, nt)
sol = integrate(ode, TableauGauss(2), Δt, nt)
@test rel_err(sol.q, ref) < 2E-5

end
2 changes: 1 addition & 1 deletion test/lotka_volterra_2d_gauge_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SimpleSolvers.set_config(:nls_rtol, 2eps())
iode = lotka_volterra_2d_iode()
idae = lotka_volterra_2d_idae()

int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, reference_solution) < 4E-4

Expand Down
2 changes: 1 addition & 1 deletion test/lotka_volterra_2d_singular_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SimpleSolvers.set_config(:nls_rtol, 2eps())
iode = lotka_volterra_2d_iode()
idae = lotka_volterra_2d_idae()

int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, reference_solution) < 5E-4

Expand Down
2 changes: 1 addition & 1 deletion test/lotka_volterra_2d_symmetric_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SimpleSolvers.set_config(:nls_rtol, 2eps())
iode = lotka_volterra_2d_iode()
idae = lotka_volterra_2d_idae()

int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, reference_solution) < 4E-4

Expand Down
2 changes: 1 addition & 1 deletion test/lotka_volterra_2d_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ SimpleSolvers.set_config(:nls_rtol, 2eps())
@test_nowarn vdae_equs[:h](vdae.t₀, vdae.q₀[begin])


int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, reference_solution) < 5E-4

Expand Down
4 changes: 2 additions & 2 deletions test/lotka_volterra_3d_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ const ref = [0.39947308320241187, 1.9479527336244262, 2.570183075433086]
@testset "$(rpad("Lotka-Volterra 3D",80))" begin
ode = lotka_volterra_3d_ode()

int = Integrator(ode, TableauGLRK(1), Δt)
int = Integrator(ode, TableauGauss(1), Δt)
sol = integrate(ode, int, nt)
H, ΔH = compute_energy_error(sol.t, sol.q)
C, ΔC = compute_casimir_error(sol.t, sol.q)
@test rel_err(sol.q, ref) < 5E-4
@test ΔH[end] < 4E-6
@test ΔC[end] < 8E-6

int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
H, ΔH = compute_energy_error(sol.t, sol.q)
C, ΔC = compute_casimir_error(sol.t, sol.q)
Expand Down
4 changes: 2 additions & 2 deletions test/lotka_volterra_4d_lagrangian_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ SimpleSolvers.set_config(:nls_stol_break, 1E3)
h2 = ref_eqs[:h](ref_ode.t₀, ref_ode.q₀[begin])
@test h1 h2 atol=1E-14

int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, reference_solution) < 8E-4

ref_int = Integrator(ref_ode, TableauGLRK(2), Δt)
ref_int = Integrator(ref_ode, TableauGauss(2), Δt)
ref_sol = integrate(ref_ode, ref_int, nt)
@test rel_err(sol.q, ref_sol.q[end]) < 1E-14

Expand Down
2 changes: 1 addition & 1 deletion test/lotka_volterra_4d_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SimpleSolvers.set_config(:nls_rtol, 2eps())
iode = lotka_volterra_4d_iode()
idae = lotka_volterra_4d_idae()

int = Integrator(ode, TableauGLRK(2), Δt)
int = Integrator(ode, TableauGauss(2), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, reference_solution) < 8E-4

Expand Down
2 changes: 1 addition & 1 deletion test/point_vortices_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ref = [0.18722529318641928, 0.38967432450068706, 0.38125332930294187, 0.42
iode = point_vortices_iode()
idae = point_vortices_idae()

int = Integrator(ode, TableauGLRK(1), Δt)
int = Integrator(ode, TableauGauss(1), Δt)
sol = integrate(ode, int, nt)
@test rel_err(sol.q, ref) < 3E-2

Expand Down

2 comments on commit 484c950

@michakraus
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/29790

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.7 -m "<description of version>" 484c9506db1300dae42034a1875243833dc3c476
git push origin v0.1.7

Please sign in to comment.