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 29, 2024
1 parent cd7753b commit 684dd45
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 684dd45

Please sign in to comment.