Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another missing include, needed with tracing=off.
[simgrid.git] / src / surf / surf_config.c
index df52120..29f17ea 100644 (file)
@@ -9,6 +9,7 @@
 #include "xbt/misc.h"
 #include "xbt/config.h"
 #include "xbt/log.h"
+#include "xbt/mallocator.h"
 #include "xbt/str.h"
 #include "surf/surf_private.h"
 #include "surf/surf_routing.h"  /* COORD_HOST_LEVEL and COORD_ASR_LEVEL */
@@ -690,7 +691,7 @@ void surf_config_init(int *argc, char **argv)
 
     surf_config_cmd_line(argc, argv);
 
-    xbt_mallocator_initialization_is_done();
+    xbt_mallocator_initialization_is_done(SIMIX_context_is_parallel());
 
   } else {
     XBT_WARN("Call to surf_config_init() after initialization ignored");