X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fd769219531a772284d75320187a0ef9f8118afd..1398fa7c21c0d81f808108e0803d875c6fce9b8e:/src/simdag/sd_global.cpp diff --git a/src/simdag/sd_global.cpp b/src/simdag/sd_global.cpp index 8ff96f877b..20476dcd06 100644 --- a/src/simdag/sd_global.cpp +++ b/src/simdag/sd_global.cpp @@ -47,7 +47,7 @@ void SD_init(int *argc, char **argv) surf_init(argc, argv); - xbt_cfg_setdefault_string(_sg_cfg_set, "host/model", "ptask_L07"); + xbt_cfg_setdefault_string("host/model", "ptask_L07"); #if HAVE_JEDULE jedule_sd_init(); @@ -69,7 +69,7 @@ void SD_init(int *argc, char **argv) */ void SD_config(const char *key, const char *value){ xbt_assert(sd_global,"ERROR: Please call SD_init() before using SD_config()"); - xbt_cfg_set_as_string(_sg_cfg_set, key, value); + xbt_cfg_set_as_string(key, value); } /** @@ -119,7 +119,6 @@ void SD_create_environment(const char *platform_file) xbt_dynar_t SD_simulate(double how_long) { /* we stop the simulation when total_time >= how_long */ double total_time = 0.0; - double elapsed_time = 0.0; SD_task_t task, dst; SD_dependency_t dependency; surf_action_t action; @@ -139,7 +138,7 @@ xbt_dynar_t SD_simulate(double how_long) { } /* main loop */ - elapsed_time = 0.0; + double elapsed_time = 0.0; while (elapsed_time >= 0.0 && (how_long < 0.0 || 0.00001 < (how_long -total_time)) && !sd_global->watch_point_reached) { surf_model_t model = NULL;