X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/55da8092d6bc5acff7c392d2c9e5379351d88def..6157f90cc9d3cce63b341338c15e91af8ccd6347:/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp diff --git a/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp b/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp index bc36f0fc45..602c222ab7 100644 --- a/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp +++ b/examples/s4u/routing-get-clusters/s4u-routing-get-clusters.cpp @@ -1,11 +1,11 @@ -/* Copyright (c) 2009-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include "simgrid/kernel/routing/ClusterZone.hpp" +#include "simgrid/kernel/routing/DragonflyZone.hpp" #include "simgrid/s4u.hpp" -#include "src/kernel/routing/ClusterZone.hpp" -#include "src/kernel/routing/DragonflyZone.hpp" XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example"); @@ -20,11 +20,11 @@ int main(int argc, char* argv[]) e.getNetzoneByType(clusters); for (auto c : *clusters) { - XBT_INFO("%s", c->getCname()); + XBT_INFO("%s", c->get_cname()); std::vector* hosts = new std::vector; c->getHosts(hosts); for (auto h : *hosts) - XBT_INFO(" %s", h->getCname()); + XBT_INFO(" %s", h->get_cname()); delete hosts; } @@ -37,10 +37,10 @@ int main(int argc, char* argv[]) if (not dragonfly_clusters->empty()) { for (auto d : *dragonfly_clusters) { - XBT_INFO("%s' dragonfly topology:", d->getCname()); + XBT_INFO("%s' dragonfly topology:", d->get_cname()); for (int i = 0; i < d->getHostCount(); i++) { unsigned int coords[4]; - d->rankId_to_coords(i, &coords); + d->rankId_to_coords(i, coords); XBT_INFO(" %d: (%u, %u, %u, %u)", i, coords[0], coords[1], coords[2], coords[3]); } }