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
error("Initial conditions for discrete variables must be for the past state of the unknown. Instead of providing the condition for $v, provide the condition for $(Shift(iv, -1)(v)).")
error("Initial conditions for discrete variables must be for the past state of the unknown. Instead of providing the condition for $v, provide the condition for $(Shift(iv, -1)(v)).")
@@ -1620,9 +1627,9 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
1620
1627
@warn"Initialization system is underdetermined. $neqs equations for $nunknown unknowns. Initialization will default to using least squares. To suppress this warning pass warn_initialize_determined = false."
1621
1628
end
1622
1629
1623
-
parammap isa DiffEqBase.NullParameters ||isempty(parammap) ?
1624
-
[get_iv(sys) => t] :
1625
-
merge(todict(parammap), Dict(get_iv(sys) => t))
1630
+
parammap = parammap isa DiffEqBase.NullParameters ||isempty(parammap) ?
Copy file name to clipboardExpand all lines: test/input_output_handling.jl
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ end
20
20
@named sys =ODESystem([D(x) ~-x + u], t) # both u and x are unbound
21
21
@named sys1 =ODESystem([D(x) ~-x + v[1] + v[2]], t) # both v and x are unbound
22
22
@named sys2 =ODESystem([D(x) ~-sys.x], t, systems = [sys]) # this binds sys.x in the context of sys2, sys2.x is still unbound
23
-
@named sys21 =ODESystem([D(x) ~-sys.x], t, systems = [sys1]) # this binds sys.x in the context of sys2, sys2.x is still unbound
23
+
@named sys21 =ODESystem([D(x) ~-sys1.x], t, systems = [sys1]) # this binds sys.x in the context of sys2, sys2.x is still unbound
24
24
@named sys3 =ODESystem([D(x) ~-sys.x + sys.u], t, systems = [sys]) # This binds both sys.x and sys.u
25
-
@named sys31 =ODESystem([D(x) ~-sys.x + sys1.v[1]], t, systems = [sys1]) # This binds both sys.x and sys1.v[1]
25
+
@named sys31 =ODESystem([D(x) ~-sys1.x + sys1.v[1]], t, systems = [sys1]) # This binds both sys.x and sys1.v[1]
26
26
27
27
@named sys4 =ODESystem([D(x) ~-sys.x, u ~ sys.u], t, systems = [sys]) # This binds both sys.x and sys3.u, this system is one layer deeper than the previous. u is directly forwarded to sys.u, and in this case sys.u is bound while u is not
0 commit comments