X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/49e85177c669d793e84242983a1b1f430e47184e..245ddc814c1b3a8ee9126f56123466d99bb523cd:/examples/simdag/sd_seq_access.c diff --git a/examples/simdag/sd_seq_access.c b/examples/simdag/sd_seq_access.c index e4cb0e6bff..4314ad6d4d 100644 --- a/examples/simdag/sd_seq_access.c +++ b/examples/simdag/sd_seq_access.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2014. The SimGrid Team. +/* Copyright (c) 2006-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,7 +6,7 @@ #include #include -#include "simdag/simdag.h" +#include "simgrid/simdag.h" #include "xbt/ex.h" #include "xbt/log.h" @@ -19,7 +19,6 @@ int main(int argc, char **argv) const char *platform_file; const SD_workstation_t *workstations; SD_task_t taskA, taskB, taskC, taskD; - xbt_dynar_t changed_tasks; /* initialization of SD */ SD_init(&argc, argv); @@ -80,14 +79,12 @@ int main(int argc, char **argv) SD_task_schedulel(taskD, 1, workstations[1]); /* let's launch the simulation! */ - while (!xbt_dynar_is_empty(changed_tasks = SD_simulate(-1.0))) { + while (!xbt_dynar_is_empty(SD_simulate(-1.0))) { XBT_INFO(" Simulation was suspended, check workstation states"); for (i = 0; i < 2; i++) { SD_workstation_dump(workstations[i]); } - xbt_dynar_free(&changed_tasks); } - xbt_dynar_free(&changed_tasks); XBT_DEBUG("Destroying tasks...");