X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9706edf4ebb5500f6d33984335280f42ad594ff1..a2ccb4c7cab4de936283e30beced5b49e519bb41:/teshsuite/simdag/platforms/flatifier.c diff --git a/teshsuite/simdag/platforms/flatifier.c b/teshsuite/simdag/platforms/flatifier.c index 128b9b7857..23b2632442 100644 --- a/teshsuite/simdag/platforms/flatifier.c +++ b/teshsuite/simdag/platforms/flatifier.c @@ -15,7 +15,7 @@ #include -#include "simdag/simdag.h" +#include "simgrid/simdag.h" #include "xbt/log.h" #include "xbt/dict.h" #include "xbt/ex.h" @@ -148,7 +148,7 @@ int main(int argc, char **argv) SD_workstation_get_power(hosts[i])); props = SD_workstation_get_properties(hosts[i]); if (SD_workstation_get_cores(hosts[i])>1) { - printf(" cores=\"%d\"", SD_workstation_get_cores(hosts[i])); + printf(" core=\"%d\"", SD_workstation_get_cores(hosts[i])); } if (props && !xbt_dict_is_empty(props)) { printf(">\n"); @@ -183,7 +183,7 @@ int main(int argc, char **argv) SD_link_get_name(links[i]), SD_link_get_current_bandwidth(links[i]), SD_link_get_current_latency(links[i])); - if (SD_link_get_sharing_policy(links[i]) == SD_LINK_SHARED) { + if (SD_link_is_shared(links[i])) { printf("/>\n"); } else { printf(" sharing_policy=\"FATPIPE\"/>\n"); @@ -193,14 +193,14 @@ int main(int argc, char **argv) xbt_lib_foreach(host_lib, cursor_src, src, value1) // Routes from host { - value1 = xbt_lib_get_or_null(host_lib,src,ROUTING_HOST_LEVEL); + value1 = sg_host_edge(sg_host_by_name(src)); xbt_lib_foreach(host_lib, cursor_dst, dst, value2) //to host { printf(" \n " ,src ,dst); xbt_dynar_t route=NULL; - value2 = xbt_lib_get_or_null(host_lib,dst,ROUTING_HOST_LEVEL); + value2 = sg_host_edge(sg_host_by_name(dst)); routing_get_route_and_latency(value1,value2,&route,NULL); for(i=0;i\n " ,src, dst); xbt_dynar_t route=NULL; - value2 = xbt_lib_get_or_null(host_lib,dst,ROUTING_HOST_LEVEL); + value2 = sg_host_edge(sg_host_by_name(dst)); routing_get_route_and_latency((sg_routing_edge_t)value1,(sg_routing_edge_t)value2,&route, NULL); for(i=0;i