X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9d53611f28f7ba6430d1f298c14b695ac2e723a5..6de9090dd8692387ae343c587b26915f9922d7bd:/examples/simdag/sd_seq_access.c diff --git a/examples/simdag/sd_seq_access.c b/examples/simdag/sd_seq_access.c index bc82a3d7b7..42039d7288 100644 --- a/examples/simdag/sd_seq_access.c +++ b/examples/simdag/sd_seq_access.c @@ -18,7 +18,7 @@ int main(int argc, char **argv) int i; const char *platform_file; const SD_workstation_t *workstations; - SD_task_t task, taskA, taskB, taskC; + SD_task_t taskA, taskB, taskC; xbt_dynar_t changed_tasks; /* initialisation of SD */ @@ -39,8 +39,8 @@ int main(int argc, char **argv) /* Change the access mode of the workstations */ workstations = SD_workstation_get_list(); for (i = 0; i < 2; i++) { - SD_workstation_dump(workstations[i]); - + SD_workstation_dump(workstations[i]); + SD_workstation_set_access_mode(workstations[i], SD_WORKSTATION_SEQUENTIAL_ACCESS); XBT_INFO(" Change access mode of %s to %s", @@ -70,9 +70,9 @@ int main(int argc, char **argv) /* let's launch the simulation! */ while (!xbt_dynar_is_empty(changed_tasks = SD_simulate(-1.0))) { - XBT_INFO(" Simulation was suspended, check workstation states"); + XBT_INFO(" Simulation was suspended, check workstation states"); for (i = 0; i < 2; i++) { - SD_workstation_dump(workstations[i]); + SD_workstation_dump(workstations[i]); } xbt_dynar_free(&changed_tasks); }