Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make this error message reproducible
[simgrid.git] / src / surf / xml / surfxml_sax_cb.cpp
index b2513fd..186b559 100644 (file)
@@ -66,6 +66,10 @@ void surf_parse_assert_netpoint(char* hostname, const char* pre, const char* pos
 
   std::vector<simgrid::kernel::routing::NetPoint*> list;
   simgrid::s4u::Engine::instance()->netpointList(&list);
 
   std::vector<simgrid::kernel::routing::NetPoint*> list;
   simgrid::s4u::Engine::instance()->netpointList(&list);
+  std::sort(list.begin(), list.end(),
+      [](simgrid::kernel::routing::NetPoint* a, simgrid::kernel::routing::NetPoint* b) {
+      return a->name() < b->name();
+  });
   bool first = true;
   for (auto np : list) {
     if (np->isNetZone())
   bool first = true;
   for (auto np : list) {
     if (np->isNetZone())