X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f06041cf2c450457a0b47a49b66b19cb9133c18e..61e948b810774df0ab0a52dd60ca1fb16af658c5:/teshsuite/simdag/basic/basic0.c diff --git a/teshsuite/simdag/basic/basic0.c b/teshsuite/simdag/basic/basic0.c index 9488361fd0..b14c08c68a 100644 --- a/teshsuite/simdag/basic/basic0.c +++ b/teshsuite/simdag/basic/basic0.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2012, 2014. The SimGrid Team. +/* Copyright (c) 2007-2012, 2014-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -28,8 +28,7 @@ int main(int argc, char **argv) SD_task_t taskInit; SD_task_t taskA; SD_task_t taskB; - xbt_dynar_t ret; - + /* scheduling parameters */ double communication_amount1[] = { 0, 1e8, 0, 0 }; @@ -49,18 +48,17 @@ int main(int argc, char **argv) /* let's launch the simulation! */ - SD_task_schedule(taskInit, 1, SD_workstation_get_list(), no_cost, + SD_task_schedule(taskInit, 1, sg_host_list(), no_cost, no_cost, -1.0); - SD_task_schedule(taskA, 2, SD_workstation_get_list(), no_cost, + SD_task_schedule(taskA, 2, sg_host_list(), no_cost, communication_amount1, -1.0); - SD_task_schedule(taskB, 2, SD_workstation_get_list(), no_cost, + SD_task_schedule(taskB, 2, sg_host_list(), no_cost, communication_amount2, -1.0); SD_task_dependency_add(NULL, NULL, taskInit, taskA); SD_task_dependency_add(NULL, NULL, taskInit, taskB); - ret = SD_simulate(-1.0); - xbt_dynar_free(&ret); + SD_simulate(-1.0); SD_task_destroy(taskInit); SD_task_destroy(taskA); SD_task_destroy(taskB);