X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/80d9a48e7538e146c639c538a52a1113d4fa922f..5e472a6023eb14e7396b16fa4eb47c805d8f4acf:/teshsuite/simdag/is-router/is-router.cpp diff --git a/teshsuite/simdag/is-router/is-router.cpp b/teshsuite/simdag/is-router/is-router.cpp index 523080ccba..a45915ed96 100644 --- a/teshsuite/simdag/is-router/is-router.cpp +++ b/teshsuite/simdag/is-router/is-router.cpp @@ -7,7 +7,8 @@ #include "simgrid/s4u/Host.hpp" #include "simgrid/simdag.h" #include "src/kernel/routing/NetPoint.hpp" -#include +#include +#include int main(int argc, char **argv) { @@ -18,7 +19,7 @@ int main(int argc, char **argv) std::printf("Host count: %zu, link number: %d\n", sg_host_count(), sg_link_count()); std::vector netcardList; - simgrid::s4u::Engine::instance()->netpointList(&netcardList); + simgrid::s4u::Engine::getInstance()->getNetpointList(&netcardList); std::sort(netcardList.begin(), netcardList.end(), [](simgrid::kernel::routing::NetPoint* a, simgrid::kernel::routing::NetPoint* b) { return a->name() < b->name(); @@ -35,7 +36,7 @@ int main(int argc, char **argv) type = "netzone"; if (nc->isHost()) type = "host"; - std::printf(" - Seen: \"%s\". Type: %s\n", host->cname(), type); + std::printf(" - Seen: \"%s\". Type: %s\n", host->getCname(), type); } xbt_dynar_free(&hosts);