void *surf_workstation = NULL;
void *surf_link = NULL;
- SD_CHECK_INIT_DONE();
+ //First pass of platform file
+ surf_config_add_callback();
+ parse_platform_file(platform_file);
+ SD_CHECK_INIT_DONE();
DEBUG0("SD_create_environment");
-
surf_config_models_setup(platform_file);
parse_platform_file(platform_file);
surf_config_models_create_elms();
DEBUG2("Workstation number: %d, link number: %d",
SD_workstation_get_number(), SD_link_get_number());
-
-#ifdef HAVE_TRACING
- TRACE_surf_save_onelink();
-#endif
}
/**
xbt_free(sd_global);
sd_global = NULL;
+#ifdef HAVE_TRACING
+ TRACE_end();
+#endif
+
DEBUG0("Exiting Surf...");
surf_exit();
} else {
WARN0("SD_exit() called, but SimDag is not running");
/* we cannot use exceptions here because xbt is not running! */
}
-#ifdef HAVE_TRACING
- TRACE_end();
-#endif
}
/**