Skip to content

Commit d0014f6

Browse files
Update src/utils.jl
Co-authored-by: Sam Isaacson <[email protected]>
1 parent 8380d6b commit d0014f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +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-
hasfield(eq, :lhs) || continue
495+
eq isa Equation || continue
496496
eq.lhs isa Union{Symbolic, Number} || continue
497497
collect_vars!(unknowns, parameters, eq.lhs, iv; depth, op)
498498
collect_vars!(unknowns, parameters, eq.rhs, iv; depth, op)

0 commit comments

Comments
 (0)