- const sg_host_t *hosts = sg_host_list();
-
- SD_task_schedule(taskInit, 1, sg_host_list(), &no_cost, &no_cost, -1.0);
- SD_task_schedule(taskA, 1, &hosts[0], &no_cost, &communication_amount1, -1.0);
- SD_task_schedule(taskB, 1, &hosts[1], &no_cost, &communication_amount2, -1.0);
+ sg_host_t *hosts = sg_host_list();
+ SD_task_schedule(taskInit, 1, hosts, SD_SCHED_NO_COST, SD_SCHED_NO_COST, -1.0);
+ SD_task_schedule(taskA, 1, &hosts[0], SD_SCHED_NO_COST, &communication_amount1, -1.0);
+ SD_task_schedule(taskB, 1, &hosts[1], SD_SCHED_NO_COST, &communication_amount2, -1.0);
+ xbt_free(hosts);