Skip to content

Commit 22a39bd

Browse files
committed
delete comments
1 parent 240ab21 commit 22a39bd

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed

src/structural_transformation/utils.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,16 +271,13 @@ end
271271

272272
function find_solvables!(state::TearingState; kwargs...)
273273
@assert state.structure.solvable_graph === nothing
274-
println("in find_solvables")
275-
@show eqs
276274
eqs = equations(state)
277275
graph = state.structure.graph
278276
state.structure.solvable_graph = BipartiteGraph(nsrcs(graph), ndsts(graph))
279277
to_rm = Int[]
280278
for ieq in 1:length(eqs)
281279
find_eq_solvables!(state, ieq, to_rm; kwargs...)
282280
end
283-
@show eqs
284281
return nothing
285282
end
286283

src/systems/systems.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ function structural_simplify(
4141
end
4242
if newsys isa DiscreteSystem &&
4343
any(eq -> symbolic_type(eq.lhs) == NotSymbolic(), equations(newsys))
44-
# error("""
45-
# Encountered algebraic equations when simplifying discrete system. This is \
46-
# not yet supported.
47-
# """)
44+
error("""
45+
Encountered algebraic equations when simplifying discrete system. This is \
46+
not yet supported.
47+
""")
4848
end
4949
for pass in additional_passes
5050
newsys = pass(newsys)

test/structural_transformation/utils.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,3 @@ end
162162
structural_simplify(sys; additional_passes = [pass])
163163
@test value[] == 1
164164
end
165-
166-
@testset "Shift simplification" begin
167-
@variables x(t) y(t) z(t)
168-
@parameters a b c
169-
170-
# Expand shifts
171-
@test isequal(ST.expand_shifts(Shift(t, -3)(x)), Shift(t, -1)(Shift(t, -1)(Shift(t, -1)(x))))
172-
expr = a * Shift(t, -2)(x) + Shift(t, 2)(y) + b
173-
@test isequal(ST.expand_shifts(expr),
174-
a * Shift(t, -1)(Shift(t, -1)(x)) + Shift(t, 1)(Shift(t, 1)(y)) + b)
175-
@test isequal(ST.expand_shifts(Shift(t, 2)(Shift(t, 1)(a))), a)
176-
177-
178-
# Distribute shifts
179-
180-
end

0 commit comments

Comments
 (0)