A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix default value for contexts/nthreads (only the help message is affected).
[simgrid.git]
/
src
/
surf
/
surf_config.c
diff --git
a/src/surf/surf_config.c
b/src/surf/surf_config.c
index
6cd40b2
..
617bffc
100644
(file)
--- a/
src/surf/surf_config.c
+++ b/
src/surf/surf_config.c
@@
-226,7
+226,7
@@
static void _surf_cfg_cb_context_stack_size(const char *name, int pos)
static void _surf_cfg_cb_contexts_nthreads(const char *name, int pos)
{
static void _surf_cfg_cb_contexts_nthreads(const char *name, int pos)
{
- SIMIX_context_set_nthreads(xbt_cfg_get_
string
(_surf_cfg_set, name));
+ SIMIX_context_set_nthreads(xbt_cfg_get_
int
(_surf_cfg_set, name));
}
static void _surf_cfg_cb_contexts_parallel_threshold(const char *name, int pos)
}
static void _surf_cfg_cb_contexts_parallel_threshold(const char *name, int pos)
@@
-461,10
+461,10
@@
void surf_config_init(int *argc, char **argv)
_surf_cfg_cb_context_stack_size, NULL);
/* number of parallel threads for user processes */
_surf_cfg_cb_context_stack_size, NULL);
/* number of parallel threads for user processes */
- default_value
= xbt_strdup("1")
;
+ default_value
_int = 1
;
xbt_cfg_register(&_surf_cfg_set, "contexts/nthreads",
"Number of parallel threads used to execute user contexts",
xbt_cfg_register(&_surf_cfg_set, "contexts/nthreads",
"Number of parallel threads used to execute user contexts",
- xbt_cfgelm_
string, &default_value
, 1, 1,
+ xbt_cfgelm_
int, &default_value_int
, 1, 1,
_surf_cfg_cb_contexts_nthreads, NULL);
/* minimal number of user contexts to be run in parallel */
_surf_cfg_cb_contexts_nthreads, NULL);
/* minimal number of user contexts to be run in parallel */