X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7c8772e246f9958e172ada583011fcee1bf58a93..b84bad24cc0d403e9773384376ecff7d360f8379:/src/surf/surf_config.c diff --git a/src/surf/surf_config.c b/src/surf/surf_config.c index 096bd61dc3..7533ba294f 100644 --- a/src/surf/surf_config.c +++ b/src/surf/surf_config.c @@ -122,18 +122,6 @@ void surf_config_init(int *argc, char **argv) char *description = xbt_malloc(1024), *p = description; char *default_value; int i; - sprintf(description, - "The model to use for the workstation. Possible values: "); - while (*(++p) != '\0'); - for (i = 0; surf_workstation_model_description[i].name; i++) - p += - sprintf(p, "%s%s", (i == 0 ? "" : ", "), - surf_workstation_model_description[i].name); - default_value = xbt_strdup("CLM03"); - xbt_cfg_register(&_surf_cfg_set, - "workstation_model", description, xbt_cfgelm_string, - &default_value, 1, 1, &_surf_cfg_cb__workstation_model, - NULL); sprintf(description, "The model to use for the CPU. Possible values: "); p = description; @@ -160,8 +148,29 @@ void surf_config_init(int *argc, char **argv) "network_model", description, xbt_cfgelm_string, &default_value, 1, 1, &_surf_cfg_cb__network_model, NULL); + + sprintf(description, + "The model to use for the workstation. Possible values: "); + p = description; + while (*(++p) != '\0'); + for (i = 0; surf_workstation_model_description[i].name; i++) + p += + sprintf(p, "%s%s", (i == 0 ? "" : ", "), + surf_workstation_model_description[i].name); + default_value = xbt_strdup("CLM03"); + xbt_cfg_register(&_surf_cfg_set, + "workstation_model", description, xbt_cfgelm_string, + &default_value, 1, 1, &_surf_cfg_cb__workstation_model, + NULL); + xbt_free(description); + default_value = xbt_strdup("Full"); + xbt_cfg_register(&_surf_cfg_set, "routing", + "Model to use to store the routing information", + xbt_cfgelm_string, &default_value, 0, 0, NULL, + NULL); + xbt_cfg_register(&_surf_cfg_set, "TCP_gamma", "Size of the biggest TCP window", xbt_cfgelm_double, NULL, 1, 1, _surf_cfg_cb__tcp_gamma, NULL); @@ -181,6 +190,7 @@ void surf_config_init(int *argc, char **argv) xbt_cfg_set_string(_surf_cfg_set, "path", initial_path); } + surf_config_cmd_line(argc, argv); } }