Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Useless tests for emptyness.
[simgrid.git] / examples / cpp / routing-get-clusters / s4u-routing-get-clusters.cpp
index 22e7c1a..660f1eb 100644 (file)
@@ -27,13 +27,11 @@ int main(int argc, char* argv[])
   std::vector<simgrid::kernel::routing::DragonflyZone*> dragonfly_clusters =
       e.get_filtered_netzones<simgrid::kernel::routing::DragonflyZone>();
 
-  if (not dragonfly_clusters.empty()) {
-    for (auto d : dragonfly_clusters) {
-      XBT_INFO("%s' dragonfly topology:", d->get_cname());
-      for (int i = 0; i < d->get_host_count(); i++) {
-        const simgrid::kernel::routing::DragonflyZone::Coords coords = d->rankId_to_coords(i);
-        XBT_INFO("   %d: (%u, %u, %u, %u)", i, coords.group, coords.chassis, coords.blade, coords.node);
-      }
+  for (auto d : dragonfly_clusters) {
+    XBT_INFO("%s' dragonfly topology:", d->get_cname());
+    for (int i = 0; i < d->get_host_count(); i++) {
+      const simgrid::kernel::routing::DragonflyZone::Coords coords = d->rankId_to_coords(i);
+      XBT_INFO("   %d: (%u, %u, %u, %u)", i, coords.group, coords.chassis, coords.blade, coords.node);
     }
   }