Skip to content

Commit 87f0d1d

Browse files
committed
Simply conditions
1 parent ad00fc7 commit 87f0d1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/systemstructure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function find_linear_equations(sys)
227227
c = expand_derivatives(Differential(var)(term), false)
228228
# test if `var` is linear in `eq`.
229229
if !(c isa Symbolic) && c isa Number
230-
if (c == 1 || c == -1) && !iszero(c)
230+
if c == 1 || c == -1
231231
c = convert(Integer, c)
232232
linear_term += c * var
233233
push!(coeffs, c)

0 commit comments

Comments
 (0)