Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get rid of sd_workstation.cpp
[simgrid.git] / teshsuite / simdag / evaluate-get-route-time / evaluate-get-route-time.c
index bb81c1c..ea122f3 100644 (file)
@@ -35,11 +35,14 @@ int main(int argc, char **argv)
   sg_host_t h1 = hosts[i];
   sg_host_t h2 = hosts[j];
   printf("%d\tand\t%d\t\t",i,j);
   sg_host_t h1 = hosts[i];
   sg_host_t h2 = hosts[j];
   printf("%d\tand\t%d\t\t",i,j);
+  xbt_dynar_t route = xbt_dynar_new(sizeof(SD_link_t), NULL);
 
   xbt_os_cputimer_start(timer);
 
   xbt_os_cputimer_start(timer);
-  SD_route_get_list(h1, h2);
+  sg_host_route(h1, h2, route);
   xbt_os_cputimer_stop(timer);
 
   xbt_os_cputimer_stop(timer);
 
+  xbt_dynar_free(&route);
+
   printf("%f\n", xbt_os_timer_elapsed(timer) );
 
   xbt_free(hosts);
   printf("%f\n", xbt_os_timer_elapsed(timer) );
 
   xbt_free(hosts);