simgrid_load_platform(argv[1]);
- /* Pick a process, no matter which, from the platform file */
+ /* Pick the first host from the platform file */
sg_host_t* all_hosts = sg_host_list();
sg_host_t first_host = all_hosts[0];
free(all_hosts);
- sg_actor_t actor = sg_actor_init("test", first_host);
- sg_actor_start(actor, runner, 0, NULL);
+ sg_actor_create("test", first_host, runner, 0, NULL);
simgrid_run();
XBT_INFO("Simulation done.");