Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change way to call get_route
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Sep 2010 08:53:19 +0000 (08:53 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Sep 2010 08:53:19 +0000 (08:53 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8263 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simdag/sd_workstation.c
src/surf/workstation_ptask_L07.c

index b38c3d9..da5b5d3 100644 (file)
@@ -199,8 +199,8 @@ const SD_link_t *SD_route_get_list(SD_workstation_t src, SD_workstation_t dst)
 
   surf_src = &src->surf_workstation;
   surf_dst = &dst->surf_workstation;
-
-  surf_route = surf_workstation_model->extension.workstation.get_route(surf_src,surf_dst);
+  surf_route = surf_workstation_model->extension.workstation.get_route(
+                 (void*)SD_workstation_get_name(src),(void*)SD_workstation_get_name(dst));
 
   if(surf_route == NULL)
   {
index 613305a..37ef666 100644 (file)
@@ -575,10 +575,8 @@ static surf_action_t ptask_action_sleep(void *cpu, double duration)
 
 static xbt_dynar_t ptask_get_route(void *src, void *dst)
 {
-//   cpu_L07_t host_src = src; // COMMENTED BY DAVID
-//   cpu_L07_t host_dst = dst; // COMMENTED BY DAVID
-
-  return NULL;// used_routing->get_route(host_src->id, host_dst->id); // COMMENTED BY DAVID
+       return global_routing->get_route((char *) src,(char *) dst);
+       //return NULL; used_routing->get_route(host_src->id, host_dst->id); // COMMENTED BY DAVID
 }
 
 static double ptask_get_link_bandwidth(const void *link)