Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctessum committed Nov 4, 2024
1 parent e0788ed commit f508770
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coupled_system_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function get_needed_vars(original_sys::ODESystem, simplified_sys)
allst = unknowns(original_sys)
simpst = unknowns(simplified_sys)
stidx = [only(findall(isequal(s), allst)) for s in simpst]
if length(stidx) == 0
return []
end
idx = collect(Graphs.DFSIterator(g, stidx))
unknowns(original_sys)[idx]
end
Expand Down

0 comments on commit f508770

Please sign in to comment.