Commit cb75314c authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make the number of links/tasks a float to allow for <1 values.

parent ce2c2715
......@@ -4437,7 +4437,7 @@ void engine_config(int restart, int fof, struct engine *e,
/* Estimated number of links per tasks */
e->links_per_tasks =
parser_get_opt_param_int(params, "Scheduler:links_per_tasks", 25);
parser_get_opt_param_float(params, "Scheduler:links_per_tasks", 25.);
/* Init the scheduler. */
scheduler_init(&e->sched, e->s, maxtasks, nr_queues,
......@@ -403,7 +403,7 @@ struct engine {
/* Average number of links per tasks. This number is used before
the creation of communication tasks so needs to be large enough. */
size_t links_per_tasks;
float links_per_tasks;
/* Are we talkative ? */
int verbose;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment