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
3eadd7a6
Commit
3eadd7a6
authored
Oct 20, 2015
by
Matthieu Schaller
Browse files
Ported cell.c
parent
2f013910
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
3eadd7a6
...
...
@@ -87,8 +87,8 @@ int cell_unpack(struct pcell *pc, struct cell *c, struct space *s) {
/* Unpack the current pcell. */
c
->
h_max
=
pc
->
h_max
;
c
->
d
t_min
=
FLT_MAX
;
// pc->dt
_min;
c
->
d
t_max
=
FLT_MAX
;
// pc->dt
_max;
c
->
t
_end
_min
=
pc
->
t_end
_min
;
c
->
t
_end
_max
=
pc
->
t_end
_max
;
c
->
count
=
pc
->
count
;
c
->
tag
=
pc
->
tag
;
...
...
@@ -161,8 +161,8 @@ int cell_pack(struct cell *c, struct pcell *pc) {
/* Start by packing the data of the current cell. */
pc
->
h_max
=
c
->
h_max
;
p
c
->
d
t_min
=
c
->
d
t_min
;
p
c
->
d
t_max
=
c
->
d
t_max
;
c
->
t
_end
_min
=
p
c
->
t
_end
_min
;
c
->
t
_end
_max
=
p
c
->
t
_end
_max
;
pc
->
count
=
c
->
count
;
c
->
tag
=
pc
->
tag
=
atomic_inc
(
&
cell_next_tag
)
%
cell_max_tag
;
...
...
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