From b8772d61229a68cf231286128d079ad9c7310357 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 7 Nov 2018 19:31:22 -0500 Subject: changed the way that the cutoff is used to compare conductivity --- lib/src/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/src') 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; } -- cgit v1.2.3-54-g00ecf