From 0b6e6a4337e8e9b6728f3604bb61a59365be3446 Mon Sep 17 00:00:00 2001 From: pants Date: Thu, 8 Sep 2016 12:28:07 -0400 Subject: src/bound_set.c --- src/graph_create.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graph_create.c') diff --git a/src/graph_create.c b/src/graph_create.c index 7348142..874a85c 100644 --- a/src/graph_create.c +++ b/src/graph_create.c @@ -482,7 +482,7 @@ graph_t *ini_voro_graph(uint_t L, bound_t boundary, bool use_dual, bound_b = (bool *)calloc(num_verts, sizeof(bool)); for (uint_t i = 0; i < tmp_num_edges; i++) { uint_t v1, v2; - double v1x, v1y, v2x, v2y, dx, dy; + double v1y, v2y, dy; v1 = tmp_edges[2 * i]; v2 = tmp_edges[2 * i + 1]; v1y = vert_coords[2 * v1 + 1]; v2y = vert_coords[2 * v2 + 1]; dy = v1y - v2y; @@ -549,10 +549,10 @@ graph_t *ini_voro_graph(uint_t L, bound_t boundary, bool use_dual, uint_t num_t = 0; for (uint_t i = 0; i < num_edges; i++) { uint_t v1, v2; - double v1x, v1y, v2x, v2y, dx, dy; + double v1y, v2y, dy; v1 = edges[2 * i]; v2 = edges[2 * i + 1]; - v1x = tmp_vert_coords[2 * v1]; v1y = tmp_vert_coords[2 * v1 + 1]; - v2x = tmp_vert_coords[2 * v2]; v2y = tmp_vert_coords[2 * v2 + 1]; + v1y = tmp_vert_coords[2 * v1 + 1]; + v2y = tmp_vert_coords[2 * v2 + 1]; dy = v1y - v2y; if (fabs(dy) > 0.5) { if (dy > 0) { -- cgit v1.2.3-70-g09d2