]> AND Public Git Repository - simgrid.git/blobdiff - examples/cpp/actor-join/s4u-actor-join.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleanup in log categories
[simgrid.git] / examples / cpp / actor-join / s4u-actor-join.cpp
index fd11767aa0505a81c5ed6d5c45a58aa095a0616c..3c56614f50a7c00b0f865fe9c5d24563b2b4ac9d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2017-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. */
@@ -55,7 +55,7 @@ int main(int argc, char* argv[])
 
   e.load_platform(argv[1]);
 
-  sg4::Actor::create("master", sg4::Host::by_name("Tremblay"), master);
+  sg4::Actor::create("master", e.host_by_name("Tremblay"), master);
 
   e.run();