summaryrefslogtreecommitdiff
path: root/src/net_fracture.c
diff options
context:
space:
mode:
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;