X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3f9587e71330e7471ef675d2652cee260a0e3a96..b356ce9a510410f879eb3cd1b16b33856aebfdbe:/teshsuite/simdag/flatifier/flatifier.cpp diff --git a/teshsuite/simdag/flatifier/flatifier.cpp b/teshsuite/simdag/flatifier/flatifier.cpp index 5fbf34cff9..8415f1c54a 100644 --- a/teshsuite/simdag/flatifier/flatifier.cpp +++ b/teshsuite/simdag/flatifier/flatifier.cpp @@ -88,7 +88,7 @@ int main(int argc, char **argv) create_environment(parse_time, platformFile); std::vector netcardList; - simgrid::s4u::Engine::instance()->netcardList(&netcardList); + simgrid::s4u::Engine::instance()->netpointList(&netcardList); std::sort(netcardList.begin(), netcardList.end(), [](simgrid::kernel::routing::NetPoint* a, simgrid::kernel::routing::NetPoint* b) { return a->name() < b->name(); @@ -153,23 +153,23 @@ int main(int argc, char **argv) simgrid::kernel::routing::NetPoint* netcardSrc = host1->pimpl_netpoint; for (unsigned int it_dst = 0; it_dst < totalHosts; it_dst++) { // Routes to host simgrid::s4u::Host* host2 = hosts[it_dst]; - std::vector route; + std::vector route; simgrid::kernel::routing::NetPoint* netcardDst = host2->pimpl_netpoint; simgrid::kernel::routing::NetZoneImpl::getGlobalRoute(netcardSrc, netcardDst, &route, nullptr); if (!route.empty()) { std::printf(" \n ", host1->cname(), host2->cname()); for (auto link : route) - std::printf("",link->getName()); + std::printf("", link->cname()); std::printf("\n \n"); } } for (auto netcardDst : netcardList) { // to router if (netcardDst->isRouter()) { std::printf(" \n ", host1->cname(), netcardDst->cname()); - std::vector route; + std::vector route; simgrid::kernel::routing::NetZoneImpl::getGlobalRoute(netcardSrc, netcardDst, &route, nullptr); for (auto link : route) - std::printf("",link->getName()); + std::printf("", link->cname()); std::printf("\n \n"); } } @@ -180,21 +180,21 @@ int main(int argc, char **argv) for (auto value2 : netcardList) { // to router if (value2->isRouter()) { std::printf(" \n ", value1->cname(), value2->cname()); - std::vector route; + std::vector route; simgrid::kernel::routing::NetZoneImpl::getGlobalRoute(value1, value2, &route, nullptr); for (auto link : route) - std::printf("",link->getName()); + std::printf("", link->cname()); std::printf("\n \n"); } } for (unsigned int it_dst = 0; it_dst < totalHosts; it_dst++) { // Routes to host simgrid::s4u::Host* host2 = hosts[it_dst]; std::printf(" \n ", value1->cname(), host2->cname()); - std::vector route; + std::vector route; simgrid::kernel::routing::NetPoint* netcardDst = host2->pimpl_netpoint; simgrid::kernel::routing::NetZoneImpl::getGlobalRoute(value1, netcardDst, &route, nullptr); for (auto link : route) - std::printf("",link->getName()); + std::printf("", link->cname()); std::printf("\n \n"); } }