-/* Copyright (c) 2020-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2020-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. */
simgrid::s4u::Engine engine(&argc, argv);
engine.load_platform(argv[1]);
- simgrid::s4u::Host* host = simgrid::s4u::Host::by_name("Tremblay");
+ simgrid::s4u::Host* host = engine.host_by_name("Tremblay");
simgrid::s4u::Actor::create("Suspender", host, Suspender());
receiver = simgrid::s4u::Actor::create("Receiver", host, Receiver());