From: Martin Quinson Date: Mon, 24 Jul 2017 20:03:47 +0000 (+0200) Subject: codacy X-Git-Tag: v3_17~322^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7974f29c39b44e8c369de2df0229e405ca1099a0?hp=2ed355817f460966034abc6a78428bdca52fcbb4;ds=sidebyside codacy --- 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