Skip to content
Snippets Groups Projects
Commit 44bacc50 authored by Aidan Chalk's avatar Aidan Chalk
Browse files

Fix to make test27cells still give 48 neighbours

parent a09b7e2a
No related branches found
No related tags found
1 merge request!381Fix to make test27cells still give 48 neighbours
...@@ -204,6 +204,8 @@ void zero_particle_fields(struct cell *c) { ...@@ -204,6 +204,8 @@ void zero_particle_fields(struct cell *c) {
void end_calculation(struct cell *c) { void end_calculation(struct cell *c) {
for (int pid = 0; pid < c->count; pid++) { for (int pid = 0; pid < c->count; pid++) {
hydro_end_density(&c->parts[pid]); hydro_end_density(&c->parts[pid]);
c->parts[pid].density.wcount *= pow_dimension(c->parts[pid].h);
c->parts[pid].density.wcount *= kernel_norm;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment