You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# y is a derivative expression expanded; add it to the initialization equations
51
-
push!(eqs_ics, y ~ x)
52
-
else
53
-
error("Initialization expression $y is currently not supported. If its a higher order derivative expression, then only the dummy derivative expressions are supported.")
54
-
end
39
+
for (y, x) in u0map
40
+
y =get(schedule.dummy_sub, y, y)
41
+
y =fixpoint_sub(y, diffmap)
42
+
if y ∈ vars_set
43
+
# variables specified in u0 overrides defaults
44
+
push!(defs, y => x)
45
+
elseif y isa Symbolics.Arr
46
+
#TODO: don't scalarize arrays
47
+
merge!(defs, Dict(scalarize(y .=> x)))
48
+
elseif y isa Symbolics.BasicSymbolic
49
+
# y is a derivative expression expanded; add it to the initialization equations
50
+
push!(eqs_ics, y ~ x)
51
+
else
52
+
error("Initialization expression $y is currently not supported. If its a higher order derivative expression, then only the dummy derivative expressions are supported.")
0 commit comments