Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
6dbca400
Commit
6dbca400
authored
6 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Communicate the maximal depth of the tree when exchanging cells at rebuild time.
parent
cc8f33ae
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!667
Change the task splitting criterion for gravity tasks
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cell.c
+3
-0
3 additions, 0 deletions
src/cell.c
src/cell.h
+3
-0
3 additions, 0 deletions
src/cell.h
with
6 additions
and
0 deletions
src/cell.c
+
3
−
0
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
...
...
This diff is collapsed.
Click to expand it.
src/cell.h
+
3
−
0
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
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment