summaryrefslogtreecommitdiff
path: root/lib/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-11-07 19:31:22 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-11-07 19:31:22 -0500
commitb8772d61229a68cf231286128d079ad9c7310357 (patch)
tree2ab7a9edd09f20d28557fd1930278f8be51f2866 /lib/src
parentff7f1cea07f88346babda8a4987844fcc78587ce (diff)
downloadfuse_networks-b8772d61229a68cf231286128d079ad9c7310357.tar.gz
fuse_networks-b8772d61229a68cf231286128d079ad9c7310357.tar.bz2
fuse_networks-b8772d61229a68cf231286128d079ad9c7310357.zip
changed the way that the cutoff is used to compare conductivity
Diffstat (limited to 'lib/src')
-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 8af140b..9addfdd 100644
--- a/lib/src/network.cpp
+++ b/lib/src/network.cpp
@@ -249,7 +249,7 @@ void network::fracture(hooks& m, double cutoff) {
while (true) {
auto currents = this->currents();
- if (currents.first < cutoff) {
+ if (currents.first < cutoff * G.vertices.size()) {
break;
}