Skip to content

Commit 6ad7df9

Browse files
Merge pull request #3117 from SciML/ChrisRackauckas-patch-8
Backwards compatibility of scope detection for Catalyst
2 parents fcad04c + d0014f6 commit 6ad7df9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.jl

+1
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ recursively searches through all subsystems of `sys`, increasing the depth if it
492492
function collect_scoped_vars!(unknowns, parameters, sys, iv; depth = 1, op = Differential)
493493
if has_eqs(sys)
494494
for eq in get_eqs(sys)
495+
eq isa Equation || continue
495496
eq.lhs isa Union{Symbolic, Number} || continue
496497
collect_vars!(unknowns, parameters, eq.lhs, iv; depth, op)
497498
collect_vars!(unknowns, parameters, eq.rhs, iv; depth, op)

0 commit comments

Comments
 (0)