From 7974f29c39b44e8c369de2df0229e405ca1099a0 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 24 Jul 2017 22:03:47 +0200 Subject: [PATCH 1/1] codacy --- src/kernel/routing/TorusZone.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kernel/routing/TorusZone.cpp b/src/kernel/routing/TorusZone.cpp index dca285d1eb..7f6b210711 100644 --- a/src/kernel/routing/TorusZone.cpp +++ b/src/kernel/routing/TorusZone.cpp @@ -116,7 +116,6 @@ void TorusZone::getLocalRoute(NetPoint* src, NetPoint* dst, sg_platf_route_cbarg * Dimension based routing routes through each dimension consecutively * TODO Change to dynamic assignment */ - unsigned int dim_product = 1; unsigned int current_node = src->id(); unsigned int next_node = 0; /* @@ -142,7 +141,7 @@ void TorusZone::getLocalRoute(NetPoint* src, NetPoint* dst, sg_platf_route_cbarg bool use_lnk_up = false; // Is this link of the form "cur -> next" or "next -> cur"? // false means: next -> cur while (current_node != dst->id()) { - dim_product = 1; // First, we will route in x-dimension + unsigned int dim_product = 1; // First, we will route in x-dimension int j=0; for (auto cur_dim : dimensions_){ // current_node/dim_product = position in current dimension -- 2.20.1