Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make teshsuite/simdag/network/test_reinit_costs work as expected.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 26 Sep 2007 21:21:03 +0000 (21:21 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 26 Sep 2007 21:21:03 +0000 (21:21 +0000)
parallel_task_network_link_set should have been private but I need it
"public" to ensure that it will be free at the end. Anyway, I only use
it at the right place now. I reset it before use though, just in case
somebody else mess with it again.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4754 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/workstation_ptask_L07.c

index 13560f1..3e88b40 100644 (file)
@@ -98,8 +98,6 @@ static void update_action_bound(surf_action_workstation_L07_t action)
       if (action->communication_amount[i * workstation_nb + j] > 0) {
        for (k = 0; k < route_size; k++) {
          lat += route[k]->lat_current;
-         xbt_dict_set(parallel_task_network_link_set, route[k]->name,
-                      route[k], NULL);
        }
        lat_current=MAX(lat_current,lat/action->communication_amount[i * workstation_nb + j]);
       }
@@ -485,6 +483,8 @@ static surf_action_t execute_parallel_task(int workstation_nb,
        xbt_dict_new_ext(workstation_nb * workstation_nb * 10);
   }
 
+  xbt_dict_reset(parallel_task_network_link_set);
+
   /* Compute the number of affected resources... */
   for (i = 0; i < workstation_nb; i++) {
     for (j = 0; j < workstation_nb; j++) {