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
a86aa183
Commit
a86aa183
authored
Nov 04, 2018
by
Matthieu Schaller
Browse files
Correctly reset the splitting flag in space.c and cell.c
parent
e7d2480c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
a86aa183
...
@@ -316,6 +316,7 @@ int cell_unpack(struct pcell *restrict pc, struct cell *restrict c,
...
@@ -316,6 +316,7 @@ int cell_unpack(struct pcell *restrict pc, struct cell *restrict c,
int
count
=
1
;
int
count
=
1
;
/* Fill the progeny recursively, depth-first. */
/* Fill the progeny recursively, depth-first. */
c
->
split
=
0
;
for
(
int
k
=
0
;
k
<
8
;
k
++
)
for
(
int
k
=
0
;
k
<
8
;
k
++
)
if
(
pc
->
progeny
[
k
]
>=
0
)
{
if
(
pc
->
progeny
[
k
]
>=
0
)
{
struct
cell
*
temp
;
struct
cell
*
temp
;
...
...
src/space.c
View file @
a86aa183
...
@@ -493,6 +493,7 @@ void space_regrid(struct space *s, int verbose) {
...
@@ -493,6 +493,7 @@ void space_regrid(struct space *s, int verbose) {
c
->
width
[
2
]
=
s
->
width
[
2
];
c
->
width
[
2
]
=
s
->
width
[
2
];
c
->
dmin
=
dmin
;
c
->
dmin
=
dmin
;
c
->
depth
=
0
;
c
->
depth
=
0
;
c
->
split
=
0
;
c
->
hydro
.
count
=
0
;
c
->
hydro
.
count
=
0
;
c
->
grav
.
count
=
0
;
c
->
grav
.
count
=
0
;
c
->
stars
.
count
=
0
;
c
->
stars
.
count
=
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