diff options
Diffstat (limited to 'src/net_notch.c')
-rw-r--r-- | src/net_notch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net_notch.c b/src/net_notch.c index 48dce1e..ccbb387 100644 --- a/src/net_notch.c +++ b/src/net_notch.c @@ -4,7 +4,7 @@ void net_notch(net_t *net, double notch_len, cholmod_common *c) { for (uint_t i = 0; i < net->graph->ne; i++) { uint_t v1, v2; - double v1x, v1y, v2x, v2y, dx, dy; + double v1x, v1y, v2x, v2y, dy; bool crosses_center, not_wrapping, correct_length; v1 = net->graph->ev[2 * i]; @@ -15,7 +15,6 @@ void net_notch(net_t *net, double notch_len, cholmod_common *c) { v2x = net->graph->vx[2 * v2]; v2y = net->graph->vx[2 * v2 + 1]; - dx = v1x - v2x; dy = v1y - v2y; crosses_center = (v1y >= 0.5 && v2y <= 0.5) || (v1y <= 0.5 && v2y >= 0.5); |