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

Code formatting

parent ed274c46
......@@ -1753,17 +1753,19 @@ void space_init(struct space *s, const struct swift_params *params,
/* Decide on the minimal top-level cell size */
const double dmax = max(max(dim[0], dim[1]), dim[2]);
int maxtcells = parser_get_opt_param_int(params,
"Scheduler:max_top_level_cells",
space_max_top_level_cells_default);
int maxtcells =
parser_get_opt_param_int(params, "Scheduler:max_top_level_cells",
space_max_top_level_cells_default);
s->cell_min = 0.99 * dmax / maxtcells;
/* Check that it is big enough. */
const double dmin = min(min(dim[0], dim[1]), dim[2]);
int needtcells = 3 * dmax / dmin;
if (maxtcells < needtcells)
error("Scheduler:max_top_level_cells is too small %d, needs to be at "
"least %d", maxtcells, needtcells);
error(
"Scheduler:max_top_level_cells is too small %d, needs to be at "
"least %d",
maxtcells, needtcells);
/* Get the constants for the scheduler */
space_maxsize = parser_get_opt_param_int(params, "Scheduler:cell_max_size",
......
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