Skip to content

Commit

Permalink
Backwards compatibility of scope detection for Catalyst
Browse files Browse the repository at this point in the history
Attempt to fix SciML/Catalyst.jl#1075
  • Loading branch information
ChrisRackauckas authored Oct 13, 2024
1 parent fcad04c commit 8380d6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ recursively searches through all subsystems of `sys`, increasing the depth if it
function collect_scoped_vars!(unknowns, parameters, sys, iv; depth = 1, op = Differential)
if has_eqs(sys)
for eq in get_eqs(sys)
hasfield(eq, :lhs) || continue
eq.lhs isa Union{Symbolic, Number} || continue
collect_vars!(unknowns, parameters, eq.lhs, iv; depth, op)
collect_vars!(unknowns, parameters, eq.rhs, iv; depth, op)
Expand Down

0 comments on commit 8380d6b

Please sign in to comment.