File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ function alias_elimination(sys)
49
49
50
50
dict = Dict (subs)
51
51
for (ieq, eq) in enumerate (eqs)
52
- if ! isdiffeq (eq) && ! _iszero (eq. lhs)
53
- eq = 0 ~ eq. rhs - eq. lhs
54
- end
55
52
eqs[ieq] = eq. lhs ~ fixpoint_sub (eq. rhs, dict)
56
53
end
57
54
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ function initialize_system_structure(sys)
90
90
eqs = copy (equations (sys))
91
91
neqs = length (eqs)
92
92
algeqs = trues (neqs)
93
- dervaridxs = Set {Int} ()
93
+ dervaridxs = OrderedSet {Int} ()
94
94
var2idx = Dict {Any,Int} ()
95
95
symbolic_incidence = []
96
96
fullvars = []
@@ -125,7 +125,9 @@ function initialize_system_structure(sys)
125
125
dvar = var
126
126
idx = varidx
127
127
while isdifferential (dvar)
128
- push! (dervaridxs, idx)
128
+ if ! (idx in dervaridxs)
129
+ push! (dervaridxs, idx)
130
+ end
129
131
isalgeq = false
130
132
dvar = arguments (dvar)[1 ]
131
133
idx = addvar! (dvar)
You can’t perform that action at this time.
0 commit comments