summaryrefslogtreecommitdiff
path: root/src/graph_create.c
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2016-10-17 09:09:12 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2016-10-17 09:09:12 -0400
commit147f9655bfb70e89e12322d5e41dfde5e36664a0 (patch)
treee645ec82194c2aab811fd03acb601d6928f6913f /src/graph_create.c
parentfe81403fe452750e072d292406a9718e4c48c652 (diff)
downloadfuse_networks-147f9655bfb70e89e12322d5e41dfde5e36664a0.tar.gz
fuse_networks-147f9655bfb70e89e12322d5e41dfde5e36664a0.tar.bz2
fuse_networks-147f9655bfb70e89e12322d5e41dfde5e36664a0.zip
fixed bug in computation of external current
Diffstat (limited to 'src/graph_create.c')
-rw-r--r--src/graph_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph_create.c b/src/graph_create.c
index 1c06052..635b12b 100644
--- a/src/graph_create.c
+++ b/src/graph_create.c
@@ -11,7 +11,7 @@ uint_t *get_spanning_edges(uint_t num_edges, uint_t *edges_to_verts, double *ver
double v1y, v2y;
v1y = vert_coords[2 * v1 + 1];
v2y = vert_coords[2 * v2 + 1];
- if ((fabs(v1y - v2y) < 0.5) && ((v1y < cut && v2y > cut) || (v1y > cut && v2y < cut))) {
+ if ((fabs(v1y - v2y) < 0.5) && ((v1y <= cut && v2y > cut) || (v1y >= cut && v2y < cut))) {
spanning_edges[*n] = i;
(*n)++;
}