Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use only 2 hosts; usefull when called on two_hosts.xml
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 19 Jun 2017 21:34:11 +0000 (23:34 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 19 Jun 2017 21:34:11 +0000 (23:34 +0200)
teshsuite/s4u/comm-waitany/comm-waitany.cpp

index 72568bc..1dd41e1 100644 (file)
@@ -65,8 +65,8 @@ int main(int argc, char** argv)
 
   engine->loadPlatform(argv[1]);
   simgrid::s4u::Host** hosts = sg_host_list();
-  simgrid::s4u::Actor::createActor("Receiver", hosts[1], receiver);
-  simgrid::s4u::Actor::createActor("Sender", hosts[2], sender);
+  simgrid::s4u::Actor::createActor("Receiver", hosts[0], receiver);
+  simgrid::s4u::Actor::createActor("Sender", hosts[1], sender);
   xbt_free(hosts);
 
   simgrid::s4u::Engine::instance()->run();