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
7b19e1e9
Commit
7b19e1e9
authored
Mar 16, 2020
by
Matthieu Schaller
Browse files
Do not access the hydro particle mass in cell.c. Some schemes do not carry masses
parent
ace81ea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
7b19e1e9
...
...
@@ -6161,7 +6161,7 @@ struct spart *cell_spawn_new_spart_from_part(struct engine *e, struct cell *c,
gp
->
time_bin
=
sp
->
time_bin
;
/* Synchronize masses, positions and velocities */
sp
->
mass
=
p
->
mass
;
sp
->
mass
=
hydro_get_
mass
(
p
)
;
sp
->
x
[
0
]
=
p
->
x
[
0
];
sp
->
x
[
1
]
=
p
->
x
[
1
];
sp
->
x
[
2
]
=
p
->
x
[
2
];
...
...
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