From: Christophe ThiƩry Date: Fri, 30 Dec 2011 10:10:50 +0000 (+0100) Subject: Fix supernovae compilation X-Git-Tag: exp_20120216~202 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/15475b4614f5e32f863ed1f3caf97614ad3eae02?ds=sidebyside Fix supernovae compilation --- diff --git a/src/surf/cpu_cas01.c b/src/surf/cpu_cas01.c index 8de56eda93..3755de922a 100644 --- a/src/surf/cpu_cas01.c +++ b/src/surf/cpu_cas01.c @@ -10,7 +10,7 @@ surf_model_t surf_cpu_model = NULL; lmm_system_t cpu_maxmin_system = NULL; e_UM_t cpu_update_mechanism = UM_UNDEFINED; -static int selective_update = 0; +static int cpu_selective_update = 0; static xbt_swag_t cpu_modified_cpu = NULL; static xbt_heap_t cpu_action_heap = NULL; @@ -702,7 +702,7 @@ static void surf_cpu_model_init_internal() surf_cpu_model->extension.cpu.add_traces = cpu_add_traces_cpu; if (!cpu_maxmin_system) { - cpu_maxmin_system = lmm_system_new(selective_update); + cpu_maxmin_system = lmm_system_new(cpu_selective_update); } if(cpu_update_mechanism == UM_LAZY){ cpu_action_heap = xbt_heap_new(8, NULL); @@ -736,10 +736,10 @@ void surf_cpu_model_init_Cas01() if(!strcmp(optim,"Full")) { cpu_update_mechanism = UM_FULL; - selective_update = select; + cpu_selective_update = select; } else if (!strcmp(optim,"Lazy")) { cpu_update_mechanism = UM_LAZY; - selective_update = 1; + cpu_selective_update = 1; xbt_assert((select==1) || (xbt_cfg_is_default_value(_surf_cfg_set,"cpu/maxmin_selective_update")), "Disabling selective update while using the lazy update mechanism is dumb!"); } else if (!strcmp(optim,"TI")) { diff --git a/src/surf/network.c b/src/surf/network.c index f144df9c05..84cff088b7 100644 --- a/src/surf/network.c +++ b/src/surf/network.c @@ -45,7 +45,7 @@ int sg_network_crosstraffic = 0; xbt_dict_t gap_lookup = NULL; e_UM_t network_update_mechanism = UM_UNDEFINED; -static int selective_update = 0; +static int net_selective_update = 0; static int net_action_is_suspended(surf_action_t action); static void update_action_remaining(double now); @@ -1029,7 +1029,7 @@ static void surf_network_model_init_internal(void) net_create_resource; if (!network_maxmin_system) - network_maxmin_system = lmm_system_new(selective_update); + network_maxmin_system = lmm_system_new(net_selective_update); routing_model_create(sizeof(link_CM02_t), net_create_resource("__loopback__", @@ -1055,10 +1055,10 @@ static void set_update_mechanism(void) { if(!strcmp(optim,"Full")) { network_update_mechanism = UM_FULL; - selective_update = select; + net_selective_update = select; } else if (!strcmp(optim,"Lazy")) { network_update_mechanism = UM_LAZY; - selective_update = 1; + net_selective_update = 1; xbt_assert((select==1) || (xbt_cfg_is_default_value(_surf_cfg_set,"network/maxmin_selective_update")), "Disabling selective update while using the lazy update mechanism is dumb!"); } else {