Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
start snake_casing s4u::Engine
[simgrid.git] / examples / s4u / routing-get-clusters / s4u-routing-get-clusters.cpp
index 51843c1..d10b415 100644 (file)
@@ -12,7 +12,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "Messages specific for this s4u example")
 int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
-  e.loadPlatform(argv[1]);
+  e.load_platform(argv[1]);
 
   std::vector<simgrid::kernel::routing::ClusterZone*>* clusters =
       new std::vector<simgrid::kernel::routing::ClusterZone*>;
@@ -40,7 +40,7 @@ int main(int argc, char* argv[])
       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]);
       }
     }