Skip to content

Commit af94889

Browse files
fix: unwrap symbolic constants in initsys generation
1 parent ed1895c commit af94889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,13 +498,13 @@ end
498498

499499
function get_possibly_array_fallback_singletons(varmap, p)
500500
if haskey(varmap, p)
501-
return varmap[p]
501+
return value(varmap[p])
502502
end
503503
if symbolic_type(p) == ArraySymbolic()
504504
symbolic_has_known_size(p) || return nothing
505505
scal = collect(p)
506506
if all(x -> haskey(varmap, x), scal)
507-
res = [varmap[x] for x in scal]
507+
res = [value(varmap[x]) for x in scal]
508508
if any(x -> x === nothing, res)
509509
return nothing
510510
elseif any(x -> x === missing, res)

0 commit comments

Comments
 (0)