summaryrefslogtreecommitdiff
path: root/lib/src/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/network.cpp')
-rw-r--r--lib/src/network.cpp2
1 files changed, 1 insertions, 1 deletions
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<long double>::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;