Skip to content

Commit eb5cd3e

Browse files
committed
Format
1 parent 38141fe commit eb5cd3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/systems/alias_elimination.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ end
475475
it === nothing && return nothing
476476
e, ns = it
477477
# c * a = b <=> a = c * b when -1 <= c <= 1
478-
return (ag[e][1], RootedAliasTree(iag, e)), (stage, iterate(neighbors(invag, root), ns))
478+
return (ag[e][1], RootedAliasTree(iag, e)), (stage,
479+
iterate(neighbors(invag, root), ns))
479480
end
480481

481482
count_nonzeros(a::AbstractArray) = count(!iszero, a)

test/reduction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ ss = alias_elimination(sys)
259259
@variables t x(t) y(t)
260260
D = Differential(t)
261261
@named sys = ODESystem([D(x) ~ 1 - x,
262-
D(y) + D(x) ~ 0])
262+
D(y) + D(x) ~ 0])
263263
new_sys = structural_simplify(sys)
264264
@test equations(new_sys) == [D(x) ~ 1 - x]
265265
@test observed(new_sys) == [D(y) ~ -D(x)]
266266

267267
@named sys = ODESystem([D(x) ~ 1 - x,
268-
y + D(x) ~ 0])
268+
y + D(x) ~ 0])
269269
new_sys = structural_simplify(sys)
270270
@test equations(new_sys) == [D(x) ~ 1 - x]
271271
@test observed(new_sys) == [y ~ -D(x)]

0 commit comments

Comments
 (0)