Skip to content

Commit f083800

Browse files
committed
Clean up
1 parent b6cc221 commit f083800

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/structural_transformation/partial_state_selection.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,10 @@ end
143143
function dummy_derivative_graph!(state::TransformationState, jac=nothing)
144144
var_eq_matching = complete(pantelides!(state))
145145
complete!(state.structure)
146-
# TODO: remove state when done
147-
dummy_derivative_graph!(state.structure, var_eq_matching, jac, state)
146+
dummy_derivative_graph!(state.structure, var_eq_matching, jac)
148147
end
149148

150-
function dummy_derivative_graph!(structure::SystemStructure, var_eq_matching, jac, state)
149+
function dummy_derivative_graph!(structure::SystemStructure, var_eq_matching, jac)
151150
@unpack eq_to_diff, var_to_diff, graph = structure
152151
diff_to_eq = invview(eq_to_diff)
153152
diff_to_var = invview(var_to_diff)

test/state_selection.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ let dd = dummy_derivative(sys)
2020
has_dx2 |= D(x2) in vars || D(D(x2)) in vars
2121
end
2222
@test has_dx1 has_dx2 # only one of x1 and x2 can be a dummy derivative
23-
@test length(states(dd)) == length(equations(dd)) == 10
23+
@test length(states(dd)) == length(equations(dd)) == 9
24+
@test length(states(structural_simplify(dd))) <= 6
2425
end
2526

2627
let pss = partial_state_selection(sys)

0 commit comments

Comments
 (0)