diff options
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); |