Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix initialization.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 12:55:25 +0000 (12:55 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 12:55:25 +0000 (12:55 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4651 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/cpu.c

index 9a85946..8abcbcb 100644 (file)
@@ -412,10 +412,8 @@ static void surf_cpu_model_init_internal(void)
   surf_cpu_model->extension_public->get_available_speed =
       get_available_speed;
 
-  cpu_set = xbt_dict_new();
-
-  if (!cpu_maxmin_system)
-    cpu_maxmin_system = lmm_system_new();
+  if(!cpu_set) cpu_set = xbt_dict_new();
+  if (!cpu_maxmin_system) cpu_maxmin_system = lmm_system_new();
 }
 
 /*********************************************************************/