From 5467c565b7568483e25701d74f1167e1fb6ef455 Mon Sep 17 00:00:00 2001 From: alegrand Date: Sun, 9 Mar 2008 21:47:12 +0000 Subject: [PATCH 1/1] Bugfix. 1) Use ptask_L07 as other models do not support parallel tasks anymore. 2) Do not free arguments defining parallel tasks. They are automatically desalocated when the action is destroyed. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5284 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/msg/parallel_task/parallel_task.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/msg/parallel_task/parallel_task.c b/examples/msg/parallel_task/parallel_task.c index 1dcf7e6332..7dd874865f 100644 --- a/examples/msg/parallel_task/parallel_task.c +++ b/examples/msg/parallel_task/parallel_task.c @@ -49,10 +49,11 @@ int test(int argc, char *argv[]) NULL); MSG_parallel_task_execute(ptask); + /* There is no need to free that! */ +/* free(communication_amount); */ +/* free(computation_amount); */ INFO0("Goodbye now!"); - free(communication_amount); - free(computation_amount); free(slaves); return 0; } @@ -62,7 +63,7 @@ MSG_error_t test_all(const char *platform_file) { MSG_error_t res = MSG_OK; - /* MSG_config("workstation_model","KCCFLN05"); */ + MSG_config("workstation_model","ptask_L07"); MSG_set_channel_number(1); MSG_create_environment(platform_file); -- 2.20.1