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
6dbca400
Commit
6dbca400
authored
Nov 06, 2018
by
Matthieu Schaller
Browse files
Communicate the maximal depth of the tree when exchanging cells at rebuild time.
parent
cc8f33ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
6dbca400
...
...
@@ -190,6 +190,7 @@ int cell_pack(struct cell *restrict c, struct pcell *restrict pc,
pc
->
hydro
.
count
=
c
->
hydro
.
count
;
pc
->
grav
.
count
=
c
->
grav
.
count
;
pc
->
stars
.
count
=
c
->
stars
.
count
;
pc
->
maxdepth
=
c
->
maxdepth
;
/* Copy the Multipole related information */
if
(
with_gravity
)
{
...
...
@@ -292,6 +293,8 @@ int cell_unpack(struct pcell *restrict pc, struct cell *restrict c,
c
->
hydro
.
count
=
pc
->
hydro
.
count
;
c
->
grav
.
count
=
pc
->
grav
.
count
;
c
->
stars
.
count
=
pc
->
stars
.
count
;
c
->
maxdepth
=
pc
->
maxdepth
;
#ifdef SWIFT_DEBUG_CHECKS
c
->
cellID
=
pc
->
cellID
;
#endif
...
...
src/cell.h
View file @
6dbca400
...
...
@@ -149,6 +149,9 @@ struct pcell {
}
stars
;
/*! Maximal depth in that part of the tree */
int
maxdepth
;
/*! Relative indices of the cell's progeny. */
int
progeny
[
8
];
...
...
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