Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cleanup work to make is_race_reversible() a method of Transition
[simgrid.git] / examples / cpp / mc-electric-fence / s4u-mc-electric-fence.cpp
index fd2179bddc21b15c5d0fdb6f00512a3f56c64f47..bdeecebd4157941807fac413bf2b5ea30c4b66db 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2013-2023. 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. */
@@ -45,9 +45,9 @@ int main(int argc, char* argv[])
 
   e.load_platform(argv[1]);
 
-  sg4::Actor::create("server", sg4::Host::by_name("HostA"), server);
-  sg4::Actor::create("client", sg4::Host::by_name("HostB"), client, 1);
-  sg4::Actor::create("client", sg4::Host::by_name("HostC"), client, 2);
+  sg4::Actor::create("server", e.host_by_name("HostA"), server);
+  sg4::Actor::create("client", e.host_by_name("HostB"), client, 1);
+  sg4::Actor::create("client", e.host_by_name("HostC"), client, 2);
 
   e.run();
   return 0;