diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2016-10-17 09:09:12 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2016-10-17 09:09:12 -0400 |
commit | 147f9655bfb70e89e12322d5e41dfde5e36664a0 (patch) | |
tree | e645ec82194c2aab811fd03acb601d6928f6913f /src/graph_create.c | |
parent | fe81403fe452750e072d292406a9718e4c48c652 (diff) | |
download | fuse_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.c | 2 |
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)++; } |