-/* Copyright (c) 2009-2020. The SimGrid Team.
+/* Copyright (c) 2009-2021. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
e.load_platform(argv[1]);
- simgrid::s4u::Actor::create("send", simgrid::s4u::Host::by_name("Tremblay"), sender_fun);
- simgrid::s4u::Actor::create("receive", simgrid::s4u::Host::by_name("Tremblay"), receiver_fun);
+ simgrid::s4u::Actor::create("send", e.host_by_name("Tremblay"), sender_fun);
+ simgrid::s4u::Actor::create("receive", e.host_by_name("Tremblay"), receiver_fun);
e.run();
return 0;