Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Run all scenarios now that other MRs have been accepted"
[simgrid.git] / teshsuite / s4u / actor-suspend / actor-suspend.cpp
index 167313ef3be11322f2111d2ee8f619fe0969ce71..c39dccf604bc3d9efa67e26028d3f5dae00cb4bf 100644 (file)
@@ -1,4 +1,4 @@
-/* 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. */
@@ -53,7 +53,7 @@ int main(int argc, char** argv)
   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());