Skip to content

Commit 95e3d29

Browse files
fix: check scope when discovering variables from equations
1 parent c8db319 commit 95e3d29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ end
483483

484484
function collect_var!(unknowns, parameters, var, iv)
485485
isequal(var, iv) && return nothing
486+
getmetadata(var, SymScope, LocalScope()) == LocalScope() || return nothing
486487
if iscalledparameter(var)
487488
callable = getcalledparameter(var)
488489
push!(parameters, callable)

0 commit comments

Comments
 (0)