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
543b5234
Commit
543b5234
authored
Feb 27, 2017
by
Matthieu Schaller
Browse files
Also compute time-step information from s-particles when rebuilding
parent
fa815d67
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
543b5234
...
...
@@ -2160,8 +2160,11 @@ void space_split_recursive(struct space *s, struct cell *c,
struct
spart
*
sp
=
&
sparts
[
k
];
const
integertime_t
ti_end
=
get_integer_time_end
(
e
->
ti_current
,
sp
->
time_bin
);
const
integertime_t
ti_beg
=
get_integer_time_begin
(
e
->
ti_current
+
1
,
sp
->
time_bin
);
if
(
ti_end
<
ti_end_min
)
ti_end_min
=
ti_end
;
if
(
ti_end
>
ti_end_max
)
ti_end_max
=
ti_end
;
if
(
ti_beg
>
ti_beg_max
)
ti_beg_max
=
ti_beg
;
}
/* Construct the multipole and the centre of mass*/
...
...
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