From 54f742f5dfe890f385fefadd6a907421033670d9 Mon Sep 17 00:00:00 2001 From: benedict-96 Date: Fri, 28 Jun 2024 16:33:35 +0200 Subject: [PATCH] Added test for Toda lattic ensemble problem. --- test/test_hodeensembles.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/test_hodeensembles.jl b/test/test_hodeensembles.jl index 78d0011..fed9cd6 100644 --- a/test/test_hodeensembles.jl +++ b/test/test_hodeensembles.jl @@ -1,10 +1,11 @@ using GeometricIntegrators: ImplicitMidpoint, integrate import GeometricProblems.CoupledHarmonicOscillator as cho +import GeometricProblems.TodaLattice as tl using Test function test_multiple_initial_conditions(cho::Module) - q₀_vec = [cho.q₀ .+ α for α in 0.:.1:1.] - p₀_vec = [cho.p₀ .+ α for α in 0.:.1:1.] + q₀_vec = [cho.q₀ .+ α for α in 0. : .4 : .8] + p₀_vec = [cho.p₀ .+ α for α in 0. : .4 : .8] # ensemble problem epr = cho.hodeensemble(q₀_vec, p₀_vec) @@ -38,5 +39,7 @@ function test_multiple_parameters(cho::Module) end test_multiple_initial_conditions(cho) +test_multiple_initial_conditions(tl) -test_multiple_parameters(cho) \ No newline at end of file +test_multiple_parameters(cho) +test_multiple_parameters(tl) \ No newline at end of file