A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix build and typo
[simgrid.git]
/
teshsuite
/
simdag
/
basic3
/
basic3.c
diff --git
a/teshsuite/simdag/basic3/basic3.c
b/teshsuite/simdag/basic3/basic3.c
index
ab44e3e
..
12f8f00
100644
(file)
--- a/
teshsuite/simdag/basic3/basic3.c
+++ b/
teshsuite/simdag/basic3/basic3.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007-201
2, 2014-2015
. The SimGrid Team.
+/* Copyright (c) 2007-201
8
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-30,8
+30,8
@@
int main(int argc, char **argv)
SD_task_t taskA = SD_task_create("Task A", NULL, 1.0);
SD_task_t taskFin = SD_task_create("Task Fin", NULL, 1.0);
SD_task_t taskA = SD_task_create("Task A", NULL, 1.0);
SD_task_t taskFin = SD_task_create("Task Fin", NULL, 1.0);
- SD_task_dependency_add(
NULL, NULL,
taskInit, taskA);
- SD_task_dependency_add(
NULL, NULL,
taskA, taskFin);
+ SD_task_dependency_add(taskInit, taskA);
+ SD_task_dependency_add(taskA, taskFin);
sg_host_t *hosts = sg_host_list();
SD_task_schedule(taskInit, 1, hosts, no_cost, no_cost, -1.0);
sg_host_t *hosts = sg_host_list();
SD_task_schedule(taskInit, 1, hosts, no_cost, no_cost, -1.0);
@@
-47,6
+47,5
@@
int main(int argc, char **argv)
XBT_INFO("Simulation time: %f", SD_get_clock());
XBT_INFO("Simulation time: %f", SD_get_clock());
- SD_exit();
return 0;
}
return 0;
}