X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b03205c0dfeddc45fea20541c8cc3d217dfada23..7b138f8b1ed3e8816eda5cb26deb71fe81b4087a:/examples/s4u/basic/s4u_basic.cpp diff --git a/examples/s4u/basic/s4u_basic.cpp b/examples/s4u/basic/s4u_basic.cpp index e4329fe4b9..12156f2547 100644 --- a/examples/s4u/basic/s4u_basic.cpp +++ b/examples/s4u/basic/s4u_basic.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2015. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2016. 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. */ @@ -33,9 +33,9 @@ public: int main(int argc, char **argv) { simgrid::s4u::Engine *e = new simgrid::s4u::Engine(&argc,argv); - e->loadPlatform("../../platforms/two_hosts_platform.xml"); - new simgrid::s4u::Actor("worker", simgrid::s4u::Host::by_name("host0"), Worker()); - new simgrid::s4u::Actor("master", simgrid::s4u::Host::by_name("host1"), 0, Master()); + e->loadPlatform("../../platforms/two_hosts.xml"); + simgrid::s4u::Actor("worker", simgrid::s4u::Host::by_name("Tremblay"), Worker()); + simgrid::s4u::Actor("master", simgrid::s4u::Host::by_name("Jupiter"), Master()); e->run(); return 0; }