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
c6c185cd
Commit
c6c185cd
authored
Oct 29, 2016
by
Matthieu Schaller
Browse files
Code formatting
parent
ed274c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
c6c185cd
...
...
@@ -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"
,
...
...
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