summaryrefslogtreecommitdiff
path: root/src/net_notch.c
diff options
context:
space:
mode:
authorpants <jaron@kent-dobias.com>2016-09-08 12:28:07 -0400
committerpants <jaron@kent-dobias.com>2016-09-08 12:28:07 -0400
commit0b6e6a4337e8e9b6728f3604bb61a59365be3446 (patch)
tree389798c8a4638506a236a276e6847d65648f6640 /src/net_notch.c
parentcf272339a3b72cf192ba986d37e50de16a4cbe49 (diff)
downloadfuse_networks-0b6e6a4337e8e9b6728f3604bb61a59365be3446.tar.gz
fuse_networks-0b6e6a4337e8e9b6728f3604bb61a59365be3446.tar.bz2
fuse_networks-0b6e6a4337e8e9b6728f3604bb61a59365be3446.zip
src/bound_set.c
Diffstat (limited to 'src/net_notch.c')
-rw-r--r--src/net_notch.c3
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);