Skip to content

Commit

Permalink
test: fix save_idxs test
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Oct 30, 2024
1 parent ebd83cf commit 95c7fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/downstream/solution_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95c7fff

Please sign in to comment.