Commit 86cf8b82 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Read the cell splitting constants from the parameter file

parent 29b013f7
......@@ -1299,6 +1299,11 @@ void space_init(struct space *s, struct swift_params *params, double dim[3],
s->nr_queues = 1; /* Temporary value until engine construction */
s->size_parts_foreign = 0;
/* Get the constants for the scheduler */
space_maxsize = parser_get_param_int(params, "Scheduler:cell_max_size");
space_subsize = parser_get_param_int(params, "Scheduler:cell_sub_size");
space_splitsize = parser_get_param_int(params, "Scheduler:cell_split_size");
/* Apply h scaling */
const double scaling =
parser_get_param_double(params, "InitialConditions:h_scaling");
......
Supports Markdown
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