summaryrefslogtreecommitdiff
path: root/src/net_fracture.c
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2016-12-02 12:18:41 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2016-12-02 12:18:41 -0500
commit24cee5501ea08e9611c514be604cd66ad8a4c03c (patch)
tree34030022e2a0ad7d25d84bfa6991657b53976848 /src/net_fracture.c
parent46fe4ba9b9388b771bec10598aad9dcee6f7a5c0 (diff)
downloadfuse_networks-24cee5501ea08e9611c514be604cd66ad8a4c03c.tar.gz
fuse_networks-24cee5501ea08e9611c514be604cd66ad8a4c03c.tar.bz2
fuse_networks-24cee5501ea08e9611c514be604cd66ad8a4c03c.zip
removed percolation thing, changed definition of damage to make percolation exponents work
Diffstat (limited to 'src/net_fracture.c')
-rw-r--r--src/net_fracture.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net_fracture.c b/src/net_fracture.c
index b5ab524..71e8c4b 100644
--- a/src/net_fracture.c
+++ b/src/net_fracture.c
@@ -27,7 +27,7 @@ uint_t get_next_broken(net_t *net, double *currents, double cutoff) {
return max_pos;
}
-data_t *net_fracture(net_t *net, cholmod_common *c, double cutoff, uint_t refactor_every) {
+data_t *net_fracture(net_t *net, cholmod_common *c, double cutoff) {
data_t *data = data_create(net->graph->ne);
uint_t n = 0;
@@ -59,8 +59,7 @@ data_t *net_fracture(net_t *net, cholmod_common *c, double cutoff, uint_t refact
free(voltages);
free(currents);
- bool refactor = (n % refactor_every) == 0;
- break_edge(net, last_broke, c, refactor);
+ break_edge(net, last_broke, c);
if (net->num_components > 1 && net->graph->boundary == TORUS_BOUND) {
break;