From 02bdcb5ef3bad56ddf1bf9cab76d63723e2aba42 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Wed, 7 May 2025 11:06:45 +0530 Subject: [PATCH] test: fix tests of analytically solved systems --- test/Mechanical/rotational.jl | 5 +---- test/Thermal/thermal.jl | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/test/Mechanical/rotational.jl b/test/Mechanical/rotational.jl index 66da8ca78..0f647c3da 100644 --- a/test/Mechanical/rotational.jl +++ b/test/Mechanical/rotational.jl @@ -289,10 +289,7 @@ end end end @mtkbuild sys = TestPosition() - prob = ODEProblem(sys, [ - sys.inertia.phi => 0, - sys.inertia.w => 0 - ], (0, 10.0)) + prob = ODEProblem(sys, [], (0, 10.0)) sol = solve(prob, Tsit5()) @test SciMLBase.successful_retcode(sol) tv = 0:0.01:10 diff --git a/test/Thermal/thermal.jl b/test/Thermal/thermal.jl index b9a8101db..ce52c6469 100644 --- a/test/Thermal/thermal.jl +++ b/test/Thermal/thermal.jl @@ -144,10 +144,7 @@ end collector, th_resistor, mass]) sys = structural_simplify(coll) - u0 = [ - mass.T => 0.0 - ] - prob = ODEProblem(sys, u0, (0, 3.0)) + prob = ODEProblem(sys, [], (0, 3.0)) sol = solve(prob, Rodas4()) @test SciMLBase.successful_retcode(sol)