Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] set of initial value of variables to any resource variable
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Dec 2010 23:19:42 +0000 (23:19 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 28 Dec 2010 23:19:42 +0000 (23:19 +0000)
details:
- otherwise paje won't simulate add/sub variable events

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

src/instr/instr_resource_utilization.c

index 3308f3c..d375bea 100644 (file)
@@ -39,11 +39,9 @@ static void __TRACE_surf_check_variable_set_to_zero(double now,
     xbt_dynar_t array = xbt_dynar_new(sizeof(char *), xbt_free);
     char *var_cpy = xbt_strdup(variable);
     xbt_dynar_push(array, &var_cpy);
-    if (TRACE_categorized ()){
-      container_t container = getContainerByName (resource);
-      type_t type = getVariableType (variable, NULL, container->type);
-      new_pajeSetVariable (now, container, type, 0);
-    }
+    container_t container = getContainerByName (resource);
+    type_t type = getVariableType (variable, NULL, container->type);
+    new_pajeSetVariable (now, container, type, 0);
     xbt_dict_set(platform_variables, resource, array,
                  xbt_dynar_free_voidp);
   } else {