Skip to content

Commit 363a30c

Browse files
fix: fix removal of missing defaults for solved array parameters
1 parent 81ff95a commit 363a30c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/systems/problem_utils.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,10 @@ function maybe_build_initialization_problem(
591591
p = unwrap(p)
592592
stype = symtype(p)
593593
op[p] = get_temporary_value(p)
594+
if iscall(p) && operation(p) === getindex
595+
arrp = arguments(p)[1]
596+
op[arrp] = collect(arrp)
597+
end
594598
end
595599

596600
if is_time_dependent(sys)

0 commit comments

Comments
 (0)