Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2023.
[simgrid.git] / teshsuite / s4u / evaluate-get-route-time / evaluate-get-route-time.cpp
index 0367a74..4481bf1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2008-2020. The SimGrid Team.
+/* Copyright (c) 2008-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -6,7 +6,7 @@
 
 /*
 for i in $(seq 1 20); do
-  teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time examples/platforms/cluster_backbone.xml 1
+  teshsuite/s4u/evaluate-get-route-time/evaluate-get-route-time examples/platforms/cluster_backbone.xml
   sleep 1
 done
 */
@@ -14,7 +14,7 @@ done
 #include "simgrid/s4u.hpp"
 #include "xbt/random.hpp"
 #include "xbt/xbt_os_time.h"
-#include <stdio.h>
+#include <cstdio>
 
 int main(int argc, char** argv)
 {
@@ -22,6 +22,7 @@ int main(int argc, char** argv)
 
   simgrid::s4u::Engine e(&argc, argv);
   e.load_platform(argv[1]);
+  e.seal_platform();
 
   std::vector<simgrid::s4u::Host*> hosts = e.get_all_hosts();
   int host_count                         = static_cast<int>(e.get_host_count());