Skip to content

Commit 0ab053c

Browse files
committed
Add init for maximum
1 parent 411efc7 commit 0ab053c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structural_transformation/bipartite_tearing/modia_tearing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function tear_graph_modia(structure::SystemStructure, isder::F = nothing,
8181
var_eq_matching = maximal_matching(graph, eqfilter, varfilter, U)
8282
var_eq_matching = complete(var_eq_matching,
8383
max(length(var_eq_matching),
84-
maximum(x -> x isa Int ? x : 0, var_eq_matching)))
84+
maximum(x -> x isa Int ? x : 0, var_eq_matching, init = 0)))
8585
full_var_eq_matching = copy(var_eq_matching)
8686
var_sccs = find_var_sccs(graph, var_eq_matching)
8787
vargraph = DiCMOBiGraph{true}(graph)

0 commit comments

Comments
 (0)