diff --git a/tests/test27cells.c b/tests/test27cells.c index f34d82c587a5a4abb91670b03f02393fa48e57ca..458129edd3b92d78a45102c118fb3e6f44ff604d 100644 --- a/tests/test27cells.c +++ b/tests/test27cells.c @@ -204,6 +204,10 @@ 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; } }