diff options
author | Jaron Kent-Dobias <jkentdobias@g.hmc.edu> | 2016-08-22 10:42:36 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jkentdobias@g.hmc.edu> | 2016-08-22 10:42:36 -0400 |
commit | a5e505fc1a8f7ae060f8f2604a8d5b6132851d34 (patch) | |
tree | a2091f9af60089e22c238a3c0f27b1684b3e4422 /src/instance.c | |
parent | af05d7e61009b85b9fc836ba35d853642ef76765 (diff) | |
download | fuse_networks-a5e505fc1a8f7ae060f8f2604a8d5b6132851d34.tar.gz fuse_networks-a5e505fc1a8f7ae060f8f2604a8d5b6132851d34.tar.bz2 fuse_networks-a5e505fc1a8f7ae060f8f2604a8d5b6132851d34.zip |
made updating the dual clusters more efficient
Diffstat (limited to 'src/instance.c')
-rw-r--r-- | src/instance.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |