Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this was not supposed to be modified, actually
authorAugustin Degomme <adegomme@users.noreply.github.com>
Fri, 16 Sep 2022 12:44:45 +0000 (14:44 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Fri, 16 Sep 2022 12:44:45 +0000 (14:44 +0200)
src/kernel/routing/FatTreeZone.cpp

index 990ae61..3c6bfc6 100644 (file)
@@ -75,7 +75,7 @@ void FatTreeZone::get_local_route(const NetPoint* src, const NetPoint* dst, Rout
     int d = destination->position; // as in d-mod-k
 
     for (unsigned int i = 0; i < currentNode->level; i++)
-      d /= (this->num_parents_per_node_[i] * this->num_port_lower_level_[i]);
+      d /= this->num_parents_per_node_[i];
 
     int k = this->num_parents_per_node_[currentNode->level] * this->num_port_lower_level_[currentNode->level];
     d = d % k;