Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
86cf8b82
Commit
86cf8b82
authored
Apr 03, 2016
by
Matthieu Schaller
Browse files
Read the cell splitting constants from the parameter file
parent
29b013f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
86cf8b82
...
...
@@ -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"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment