Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make it clear in output that the direct comms are sendto [no-ci]
[simgrid.git] / teshsuite / s4u / wait-all-for / wait-all-for.cpp
index f8ca85dc5641522bcf36d68361353a7d99c77b15..371936a2a021864cb843267bccce614952c16441 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2019-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2019-2022. 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. */
@@ -47,7 +47,7 @@ int main(int argc, char* argv[])
 {
   simgrid::s4u::Engine e(&argc, argv);
   e.load_platform(argv[1]);
-  simgrid::s4u::Actor::create("worker", simgrid::s4u::Host::by_name("Tremblay"), worker);
+  simgrid::s4u::Actor::create("worker", e.host_by_name("Tremblay"), worker);
   e.run();
   return 0;
 }