Skip to content
GitLab
Menu
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
70e99f3e
Commit
70e99f3e
authored
Jul 27, 2017
by
Matthieu Schaller
Browse files
Added comment to explain the conversion to N_ngb from wcount in test27.
parent
44bacc50
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test27cells.c
View file @
70e99f3e
...
...
@@ -204,6 +204,8 @@ void zero_particle_fields(struct cell *c) {
void
end_calculation
(
struct
cell
*
c
)
{
for
(
int
pid
=
0
;
pid
<
c
->
count
;
pid
++
)
{
hydro_end_density
(
&
c
->
parts
[
pid
]);
/* Recover the common "Neighbour number" definition */
c
->
parts
[
pid
].
density
.
wcount
*=
pow_dimension
(
c
->
parts
[
pid
].
h
);
c
->
parts
[
pid
].
density
.
wcount
*=
kernel_norm
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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