From 147f9655bfb70e89e12322d5e41dfde5e36664a0 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 17 Oct 2016 09:09:12 -0400 Subject: fixed bug in computation of external current --- src/graph_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/graph_create.c') 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)++; } -- cgit v1.2.3-70-g09d2