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
7bca9656
Commit
7bca9656
authored
Jul 04, 2018
by
Pedro Gonnet
Browse files
don't tag cells when packing, will do this locally when send tasks are attached.
parent
fd721632
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
7bca9656
...
...
@@ -185,7 +185,7 @@ int cell_pack(struct cell *restrict c, struct pcell *restrict pc) {
pc
->
count
=
c
->
count
;
pc
->
gcount
=
c
->
gcount
;
pc
->
scount
=
c
->
scount
;
c
->
tag
=
pc
->
tag
=
atomic_inc
(
&
cell_next_tag
)
%
cell_max_tag
;
#ifdef SWIFT_DEBUG_CHECKS
pc
->
cellID
=
c
->
cellID
;
#endif
...
...
@@ -196,8 +196,9 @@ int cell_pack(struct cell *restrict c, struct pcell *restrict pc) {
if
(
c
->
progeny
[
k
]
!=
NULL
)
{
pc
->
progeny
[
k
]
=
count
;
count
+=
cell_pack
(
c
->
progeny
[
k
],
&
pc
[
count
]);
}
else
}
else
{
pc
->
progeny
[
k
]
=
-
1
;
}
/* Return the number of packed cells used. */
c
->
pcell_size
=
count
;
...
...
@@ -235,7 +236,6 @@ int cell_unpack(struct pcell *restrict pc, struct cell *restrict c,
c
->
count
=
pc
->
count
;
c
->
gcount
=
pc
->
gcount
;
c
->
scount
=
pc
->
scount
;
c
->
tag
=
pc
->
tag
;
#ifdef SWIFT_DEBUG_CHECKS
c
->
cellID
=
pc
->
cellID
;
#endif
...
...
src/cell.h
View file @
7bca9656
...
...
@@ -116,9 +116,6 @@ struct pcell {
/*! Number of #spart in this cell. */
int
scount
;
/*! tag used for MPI communication. */
int
tag
;
/*! 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