X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/41c7004ba8a681e8409d669852862f50c0d82cbb..0bac7d0f735ac8ba47a46e1db4f6d7a7164fe0f2:/teshsuite/simdag/platforms/flatifier.c diff --git a/teshsuite/simdag/platforms/flatifier.c b/teshsuite/simdag/platforms/flatifier.c index 3115c3f701..ad49f948b8 100644 --- a/teshsuite/simdag/platforms/flatifier.c +++ b/teshsuite/simdag/platforms/flatifier.c @@ -190,18 +190,18 @@ int main(int argc, char **argv) } } - - xbt_lib_foreach(host_lib, cursor_src, src, value1) // Routes from host + sg_host_t host1, host2; + xbt_dict_foreach(host_list, cursor_src, src, host1) // Routes from host { value1 = sg_host_edge(sg_host_by_name(src)); - xbt_lib_foreach(host_lib, cursor_dst, dst, value2) //to host + xbt_dict_foreach(host_list, cursor_dst, dst, host2) //to host { printf(" \n " ,src ,dst); xbt_dynar_t route=NULL; value2 = sg_host_edge(sg_host_by_name(dst)); - routing_get_route_and_latency(value1,value2,&route,NULL); + routing_get_route_and_latency(value1, value2, &route,NULL); for(i=0;i\n"); } } - xbt_lib_foreach(host_lib, cursor_dst, dst, value2) //to host + xbt_dict_foreach(host_list, cursor_dst, dst, value2) //to host { printf(" \n " ,src, dst);