From a5e505fc1a8f7ae060f8f2604a8d5b6132851d34 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 22 Aug 2016 10:42:36 -0400 Subject: made updating the dual clusters more efficient --- src/instance.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/instance.c') diff --git a/src/instance.c b/src/instance.c index 5b3d8fb..098ed92 100644 --- a/src/instance.c +++ b/src/instance.c @@ -32,7 +32,8 @@ finst *create_instance(fnet *network, double inf, bool voltage_bound, ((double *)instance->boundary_cond->x)[network->bound_verts[0]] = 1; } - instance->adjacency = gen_adjacency(instance, false, false, 0, c); + if (network->boundary != TORUS_BOUND) instance->adjacency = gen_adjacency(instance, false, false, 0, c); + else instance->adjacency = gen_adjacency(instance, true, false, 0, c); if (startnow) { cholmod_sparse *laplacian = gen_laplacian(instance, c, true); -- cgit v1.2.3-70-g09d2