Skip to content

Commit

Permalink
fix: fix isvarkind for Symbolics.Arr
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jan 6, 2025
1 parent de17b87 commit 5097335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct Equality <: AbstractConnectType end # Equality connection
struct Flow <: AbstractConnectType end # sum to 0
struct Stream <: AbstractConnectType end # special stream connector

isvarkind(m, x::Num) = isvarkind(m, value(x))
isvarkind(m, x::Union{Num, Symbolics.Arr}) = isvarkind(m, value(x))
function isvarkind(m, x)
iskind = getmetadata(x, m, nothing)
iskind !== nothing && return iskind
Expand Down

0 comments on commit 5097335

Please sign in to comment.