From 86cf8b82b600804f65b8321b4619583166045307 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Sun, 3 Apr 2016 18:06:43 +0100 Subject: [PATCH] Read the cell splitting constants from the parameter file --- src/space.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/space.c b/src/space.c index 588ddf1a43..1d3878b109 100644 --- a/src/space.c +++ b/src/space.c @@ -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"); -- GitLab