summaryrefslogtreecommitdiff
path: root/src/graph_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph_create.c')
-rw-r--r--src/graph_create.c8
1 files changed, 4 insertions, 4 deletions
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) {