From 684dd4511049797d158fc3ae8fd9e8fc106c00d9 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 29 Oct 2024 16:01:01 +0530 Subject: [PATCH] test: fix save_idxs test --- test/downstream/solution_interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/downstream/solution_interface.jl b/test/downstream/solution_interface.jl index 12e2c9402..cb6a07780 100644 --- a/test/downstream/solution_interface.jl +++ b/test/downstream/solution_interface.jl @@ -293,7 +293,7 @@ end prob = ODEProblem(sys, [x => 1.0, y => 1.0], (0.0, 5.0), [p => 0.5, q => 0.0, r => 1.0, s => 10.0, u => 4096.0]) ss = SciMLBase.SavedSubsystem(sys, prob.p, [x, q, s, r]) - @test SciMLBase.get_saved_state_idxs(ss) == [xidx] + @test SciMLBase.get_saved_state_idxs(ss) == [variable_index(sys, x)] sswf = SciMLBase.SavedSubsystemWithFallback(ss, sys) xidx = variable_index(sys, x) qidx = parameter_index(sys, q)