summaryrefslogtreecommitdiff
path: root/src/graph_create.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/graph_create.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/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) {