From 98b6303894018c626b68e135c892af46b4a6b9de Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 7 May 2019 12:34:37 -0400 Subject: fixed bounds for good, expect maybe later specialization to the number of remaining fuses --- lib/src/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/network.cpp b/lib/src/network.cpp index 47e5851..e885fcb 100644 --- a/lib/src/network.cpp +++ b/lib/src/network.cpp @@ -324,7 +324,7 @@ void elastic_network::fracture(hooks& m, double weight, double cutoff) { long double max_val = std::numeric_limits::lowest(); for (unsigned i = 0; i < G.edges.size(); i++) { - if (!fuses[i] && ctot.currents[i] > cutoff) { + if (!fuses[i] && ctot.currents[i] > 1.0 / G.edges.size()) { long double val = logl(ctot.currents[i]) - thresholds[i]; if (val > max_val) { max_val = val; -- cgit v1.2.3-70-g09d2