Skip to content

Commit 941d475

Browse files
fix: check Symbolics.shape instead of size in IndexCache constructor
1 parent 9bd2b5a commit 941d475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/index_cache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function IndexCache(sys::AbstractSystem)
101101
if ctype <: Real || ctype <: AbstractArray{<:Real}
102102
if is_discrete_domain(p)
103103
disc_buffers
104-
elseif istunable(p, true) && size(p) !== Symbolics.Unknown()
104+
elseif istunable(p, true) && Symbolics.shape(p) !== Symbolics.Unknown()
105105
tunable_buffers
106106
else
107107
constant_buffers

0 commit comments

Comments
 (0)