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
662299af
Commit
662299af
authored
Dec 29, 2017
by
Matthieu Schaller
Browse files
Use all g-particles to compute cell time-step in space_split_recursive() not just the DM ones.
parent
beda0059
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
662299af
...
...
@@ -2231,11 +2231,8 @@ void space_split_recursive(struct space *s, struct cell *c,
if
(
gparts
[
k
].
time_bin
==
time_bin_inhibited
)
error
(
"Inhibited g-particle present in space_split()"
);
#endif
if
(
gparts
[
k
].
type
==
swift_type_dark_matter
)
{
gravity_time_bin_min
=
min
(
gravity_time_bin_min
,
gparts
[
k
].
time_bin
);
gravity_time_bin_max
=
max
(
gravity_time_bin_max
,
gparts
[
k
].
time_bin
);
}
gravity_time_bin_min
=
min
(
gravity_time_bin_min
,
gparts
[
k
].
time_bin
);
gravity_time_bin_max
=
max
(
gravity_time_bin_max
,
gparts
[
k
].
time_bin
);
gparts
[
k
].
x_diff
[
0
]
=
0
.
f
;
gparts
[
k
].
x_diff
[
1
]
=
0
.
f
;
gparts
[
k
].
x_diff
[
2
]
=
0
.
f
;
...
...
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