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
0500b35d
Commit
0500b35d
authored
Oct 20, 2015
by
Matthieu Schaller
Browse files
Ported engine.c
parent
3eadd7a6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/cell.h
View file @
0500b35d
...
...
@@ -111,7 +111,7 @@ struct cell {
int
nr_density
,
nr_force
,
nr_grav
;
/* The ghost task to link density to interactions. */
struct
task
*
ghost
,
*
kick1
,
*
kick
2
;
struct
task
*
ghost
,
*
init
,
*
drift
,
*
kick
;
/* Task receiving data. */
struct
task
*
recv_xv
,
*
recv_rho
;
...
...
src/engine.c
View file @
0500b35d
This diff is collapsed.
Click to expand it.
src/space.c
View file @
0500b35d
...
...
@@ -279,8 +279,10 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
s
->
cells
[
k
].
sorted
=
0
;
s
->
cells
[
k
].
count
=
0
;
s
->
cells
[
k
].
gcount
=
0
;
s
->
cells
[
k
].
kick1
=
NULL
;
s
->
cells
[
k
].
kick2
=
NULL
;
s
->
cells
[
k
].
init
=
NULL
;
s
->
cells
[
k
].
ghost
=
NULL
;
s
->
cells
[
k
].
drift
=
NULL
;
s
->
cells
[
k
].
kick
=
NULL
;
s
->
cells
[
k
].
super
=
&
s
->
cells
[
k
];
}
s
->
maxdepth
=
0
;
...
...
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