X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/028600ff598195e84323493a1f790c2df5ef3bb2..134908de4aba4e2b46d486bdd363083d75b85897:/teshsuite/simdag/basic0/basic0.c diff --git a/teshsuite/simdag/basic0/basic0.c b/teshsuite/simdag/basic0/basic0.c index 4b472c3fd3..0115af360d 100644 --- a/teshsuite/simdag/basic0/basic0.c +++ b/teshsuite/simdag/basic0/basic0.c @@ -40,9 +40,11 @@ int main(int argc, char **argv) SD_task_dependency_add(NULL, NULL, taskInit, taskA); SD_task_dependency_add(NULL, NULL, taskInit, taskB); - SD_task_schedule(taskInit, 1, sg_host_list(), no_cost, no_cost, -1.0); - SD_task_schedule(taskA, 2, sg_host_list(), no_cost, communication_amount1, -1.0); - SD_task_schedule(taskB, 2, sg_host_list(), no_cost, communication_amount2, -1.0); + sg_host_t *hosts = sg_host_list(); + SD_task_schedule(taskInit, 1, hosts, no_cost, no_cost, -1.0); + SD_task_schedule(taskA, 2, hosts, no_cost, communication_amount1, -1.0); + SD_task_schedule(taskB, 2, hosts, no_cost, communication_amount2, -1.0); + xbt_free(hosts); /* let's launch the simulation! */ SD_simulate(-1.0); @@ -52,6 +54,5 @@ int main(int argc, char **argv) XBT_INFO("Simulation time: %f", SD_get_clock()); - SD_exit(); return 0; }