From: Arnaud Giersch Date: Wed, 8 Feb 2012 07:11:11 +0000 (+0100) Subject: Set network_maxmin_system->keep_track once for all. X-Git-Tag: exp_20120216~47^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e1b0e461601e641def843bb89f119af748971a6c Set network_maxmin_system->keep_track once for all. --- diff --git a/src/surf/network.c b/src/surf/network.c index 79331d035e..0da4bbfe07 100644 --- a/src/surf/network.c +++ b/src/surf/network.c @@ -464,9 +464,7 @@ static double net_share_resources_lazy(double now) XBT_DEBUG("Before share resources, the size of modified actions set is %d", xbt_swag_size(net_modified_set)); update_action_remaining(now); - network_maxmin_system->keep_track = net_modified_set; lmm_solve(network_maxmin_system); - network_maxmin_system->keep_track = NULL; XBT_DEBUG("After share resources, The size of modified actions set is %d", xbt_swag_size(net_modified_set)); @@ -1079,8 +1077,8 @@ static void surf_network_model_init_internal(void) if(network_update_mechanism == UM_LAZY){ net_action_heap = xbt_heap_new(8,NULL); xbt_heap_set_update_callback(net_action_heap, net_action_update_index_heap); - net_modified_set = - xbt_swag_new(xbt_swag_offset(comm, action_list_hookup)); + net_modified_set = xbt_swag_new(xbt_swag_offset(comm, action_list_hookup)); + network_maxmin_system->keep_track = net_modified_set; } }