File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ function generate_initializesystem_timevarying(sys::AbstractSystem;
65
65
function process_u0map_with_dummysubs (y, x)
66
66
y = get (schedule. dummy_sub, y, y)
67
67
y = fixpoint_sub (y, diffmap)
68
+ # FIXME : DAEs provide initial conditions that require reducing the system
69
+ # to index zero. If `isdifferential(y)`, an initial condition was given for an
70
+ # algebraic variable, so ignore it. Otherwise, the initialization system
71
+ # gets a `D(y) ~ ...` equation and errors. This is the same behavior as v9.
72
+ if isdifferential (y)
73
+ return
74
+ end
68
75
# If we have `D(x) ~ x` and provide [D(x) => x, x => 1.0] to `u0map`, then
69
76
# without this condition `defs` would get `x => x` instead of retaining
70
77
# `x => 1.0`.
You can’t perform that action at this time.
0 commit comments