@@ -35,7 +35,7 @@ function pss_graph_modia!(structure::SystemStructure, maximal_top_matching, varl
3535 # Find Strongly connected components. Note that after pantelides, we expect
3636 # a balanced system, so a maximal matching should be possible.
3737 var_sccs:: Vector{Union{Vector{Int}, Int}} = find_var_sccs (graph, maximal_top_matching)
38- var_eq_matching = Matching {Union{Unassigned, SelectedUnknown }} (ndsts (graph))
38+ var_eq_matching = Matching {Union{Unassigned, SelectedState }} (ndsts (graph))
3939 for vars in var_sccs
4040 # TODO : We should have a way to not have the scc code look at unassigned vars.
4141 if length (vars) == 1 && maximal_top_matching[vars[1 ]] === unassigned
@@ -72,7 +72,7 @@ function pss_graph_modia!(structure::SystemStructure, maximal_top_matching, varl
7272 removed_vars = Int[]
7373 for var in old_level_vars
7474 old_assign = var_eq_matching[var]
75- if isa (old_assign, SelectedUnknown )
75+ if isa (old_assign, SelectedState )
7676 push! (removed_vars, var)
7777 continue
7878 elseif ! isa (old_assign, Int) ||
@@ -114,7 +114,7 @@ function pss_graph_modia!(structure::SystemStructure, maximal_top_matching, varl
114114 for var in remaining_vars
115115 if nlsolve_matching[var] === unassigned &&
116116 var_eq_matching[var] === unassigned
117- var_eq_matching[var] = SelectedUnknown ()
117+ var_eq_matching[var] = SelectedState ()
118118 end
119119 end
120120 end
@@ -127,7 +127,7 @@ function pss_graph_modia!(structure::SystemStructure, maximal_top_matching, varl
127127 return complete (var_eq_matching, nsrcs (graph))
128128end
129129
130- struct SelectedUnknown end
130+ struct SelectedState end
131131function partial_state_selection_graph! (structure:: SystemStructure , var_eq_matching)
132132 @unpack eq_to_diff, var_to_diff, graph, solvable_graph = structure
133133 eq_to_diff = complete (eq_to_diff)
@@ -349,13 +349,13 @@ function tearing_with_dummy_derivatives(structure, dummy_derivatives)
349349 end
350350 var_eq_matching, full_var_eq_matching, var_sccs = tear_graph_modia (structure,
351351 Base. Fix1 (isdiffed, (structure, dummy_derivatives)),
352- Union{Unassigned, SelectedUnknown };
352+ Union{Unassigned, SelectedState };
353353 varfilter = Base. Fix1 (getindex, can_eliminate))
354354 for v in eachindex (var_eq_matching)
355355 is_present (structure, v) || continue
356356 dv = var_to_diff[v]
357357 (dv === nothing || ! is_some_diff (structure, dummy_derivatives, dv)) && continue
358- var_eq_matching[v] = SelectedUnknown ()
358+ var_eq_matching[v] = SelectedState ()
359359 end
360360 return var_eq_matching, full_var_eq_matching, var_sccs, can_eliminate
361361end
0 commit comments