Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add rule to handle case where we want a route to router in fat trees
authorAugustin Degomme <degomme@idpann.imag.fr>
Tue, 27 May 2014 08:15:11 +0000 (10:15 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Tue, 27 May 2014 08:15:11 +0000 (10:15 +0200)
Basically says that all nodes may be accessed directly, here.
This may need to be changed later.

src/surf/surf_routing_cluster_fat_tree.cpp

index b2697d1..a62dcb0 100644 (file)
@@ -50,6 +50,9 @@ void AsClusterFatTree::getRouteAndLatency(RoutingEdgePtr src,
   FatTreeNode *source, *destination, *currentNode;
   std::vector<NetworkLink*> route;
   std::map<int, FatTreeNode*>::const_iterator tempIter;
+
+  if (dst->getRcType() == SURF_NETWORK_ELEMENT_ROUTER || src->getRcType() == SURF_NETWORK_ELEMENT_ROUTER) return;
+
   tempIter = this->computeNodes.find(src->getId());
 
   // xbt_die -> assert