X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6985b5de45eda7769cd98891461948ae298eb8c3..7d195832dafde68afd749dd614e9a14d697bdb92:/src/kernel/routing/TorusZone.cpp diff --git a/src/kernel/routing/TorusZone.cpp b/src/kernel/routing/TorusZone.cpp index ca8c430ad0..ce370db168 100644 --- a/src/kernel/routing/TorusZone.cpp +++ b/src/kernel/routing/TorusZone.cpp @@ -20,14 +20,15 @@ namespace simgrid { namespace kernel { namespace routing { -void TorusZone::create_torus_links(int id, int rank, unsigned long position) +void TorusZone::create_torus_links(unsigned long id, int rank, unsigned long position) { /* Create all links that exist in the torus. Each rank creates @a dimensions-1 links */ int dim_product = 1; // Needed to calculate the next neighbor_id for (unsigned long j = 0; j < dimensions_.size(); j++) { - int current_dimension = dimensions_[j]; // which dimension are we currently in? - // we need to iterate over all dimensions and create all links there + unsigned long current_dimension = + dimensions_[j]; // which dimension are we currently in? + // we need to iterate over all dimensions and create all links there // The other node the link connects int neighbor_rank_id = ((rank / dim_product) % current_dimension == current_dimension - 1) ? rank - (current_dimension - 1) * dim_product