File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,16 @@ function generate_rhs(sys::System; implicit_dae = false,
54
54
# Handle observables in algebraic equations, since they are shifted
55
55
shifted_obs = Equation[distribute_shift (D (eq)) for eq in obs]
56
56
obsidxs = observed_equations_used_by (sys, rhss; obs = shifted_obs)
57
- extra_assignments = [Assignment (shifted_obs[i]. lhs, shifted_obs[i]. rhs)
58
- for i in obsidxs]
57
+ ddvs = map (D, dvs)
58
+
59
+ append! (extra_assignments,
60
+ [Assignment (shifted_obs[i]. lhs, shifted_obs[i]. rhs)
61
+ for i in obsidxs])
59
62
else
60
63
D = Differential (t)
64
+ ddvs = map (D, dvs)
61
65
rhss = [_iszero (eq. lhs) ? eq. rhs : eq. rhs - eq. lhs for eq in eqs]
62
66
end
63
- ddvs = map (D, dvs)
64
67
else
65
68
if ! override_discrete && ! is_discrete_system (sys)
66
69
check_operator_variables (eqs, Differential)
You can’t perform that action at this time.
0 commit comments