diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-05-06 23:01:25 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-05-06 23:01:25 -0400 |
commit | ee2fe27f538281b59d9f0dcaf2fb9da447c135e6 (patch) | |
tree | 6b40bcec3f3f4a90cd37cf6178487b50add0c1b9 /lib | |
parent | a9275adce368caaeaabc54bf0ca62a20a074e568 (diff) | |
download | fuse_networks-ee2fe27f538281b59d9f0dcaf2fb9da447c135e6.tar.gz fuse_networks-ee2fe27f538281b59d9f0dcaf2fb9da447c135e6.tar.bz2 fuse_networks-ee2fe27f538281b59d9f0dcaf2fb9da447c135e6.zip |
more cutoff tweaking
Diffstat (limited to 'lib')
-rw-r--r-- | lib/include/network.hpp | 2 | ||||
-rw-r--r-- | lib/src/network.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/include/network.hpp b/lib/include/network.hpp index 6012228..8f7bd12 100644 --- a/lib/include/network.hpp +++ b/lib/include/network.hpp @@ -74,7 +74,7 @@ class elastic_network : public network { elastic_network(const graph&, cholmod_common*); elastic_network(const elastic_network&); - void fracture(hooks&, double weight = 0.5, double cutoff = 1e-12); + void fracture(hooks&, double weight = 0.5, double cutoff = 1e-10); current_info get_current_info(); }; diff --git a/lib/src/network.cpp b/lib/src/network.cpp index 250a38e..47e5851 100644 --- a/lib/src/network.cpp +++ b/lib/src/network.cpp @@ -296,8 +296,8 @@ void elastic_network::fracture(hooks& m, double weight, double cutoff) { current_info cx = hook_x.solve(fuses); current_info cy = hook_y.solve(fuses); - bool done_x = cx.conductivity < 0.1 / G.edges.size(); - bool done_y = cy.conductivity < 0.1 / G.edges.size(); + bool done_x = cx.conductivity < 1.0 / G.edges.size(); + bool done_y = cy.conductivity < 1.0 / G.edges.size(); if (done_x && done_y) { break; |