-/* Copyright (c) 2017-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2017-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. */
sg4::Engine e(&argc, argv);
e.load_platform(argv[1]);
- sg4::Actor::create("worker", sg4::Host::by_name("Boivin"), worker);
- sg4::Actor::create("daemon", sg4::Host::by_name("Tremblay"), my_daemon);
+ sg4::Actor::create("worker", e.host_by_name("Boivin"), worker);
+ sg4::Actor::create("daemon", e.host_by_name("Tremblay"), my_daemon);
e.run();
return 0;