@@ -319,7 +319,7 @@ function tearing_reassemble(state::TearingState, var_eq_matching, ag = nothing;
319
319
var -> diff_to_var[var] != = nothing
320
320
end
321
321
322
- retear = BitSet ()
322
+ # retear = BitSet()
323
323
# There are three cases where we want to generate new variables to convert
324
324
# the system into first order (semi-implicit) ODEs.
325
325
#
@@ -480,27 +480,27 @@ function tearing_reassemble(state::TearingState, var_eq_matching, ag = nothing;
480
480
# This removes the assignment of the variable `idx`, so we
481
481
# should consider assign them again later.
482
482
var_eq_matching[x_t_idx] = original_assigned_eq
483
- if ! isempty (𝑑neighbors (graph, idx))
484
- push! (retear, idx)
485
- end
483
+ # if !isempty(𝑑neighbors(graph, idx))
484
+ # push!(retear, idx)
485
+ # end
486
486
end
487
487
end
488
488
end
489
489
empty! (subinfo)
490
490
empty! (subs)
491
491
end
492
492
493
- ict = IncrementalCycleTracker (DiCMOBiGraph {true} (graph, var_eq_matching); dir = :in )
494
- for idx in retear
495
- for alternative_eq in 𝑑neighbors (solvable_graph, idx)
496
- # skip actually differentiated variables
497
- any (𝑠neighbors (graph, alternative_eq)) do alternative_v
498
- ((vv = diff_to_var[alternative_v]) != = nothing &&
499
- var_eq_matching[vv] === SelectedState ())
500
- end && continue
501
- try_assign_eq! (ict, idx, alternative_eq) && break
502
- end
503
- end
493
+ # ict = IncrementalCycleTracker(DiCMOBiGraph{true}(graph, var_eq_matching); dir = :in)
494
+ # for idx in retear
495
+ # for alternative_eq in 𝑑neighbors(solvable_graph, idx)
496
+ # # skip actually differentiated variables
497
+ # any(𝑠neighbors(graph, alternative_eq)) do alternative_v
498
+ # ((vv = diff_to_var[alternative_v]) !== nothing &&
499
+ # var_eq_matching[vv] === SelectedState())
500
+ # end && continue
501
+ # try_assign_eq!(ict, idx, alternative_eq) && break
502
+ # end
503
+ # end
504
504
505
505
# Will reorder equations and states to be:
506
506
# [diffeqs; ...]
0 commit comments