Commit 04f8a670 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Corrected typo in Minimal-SPH implementation that prevents neighbour number...

Corrected typo in Minimal-SPH implementation that prevents neighbour number convergence in some cases.
parent b5ad2a54
......@@ -224,7 +224,7 @@ __attribute__((always_inline)) INLINE static void hydro_end_density(
/* Finish the calculation by inserting the missing h-factors */
p->rho *= h_inv_dim;
p->density.rho_dh *= h_inv_dim_plus_one;
p->density.wcount *= kernel_norm;
p->density.wcount *= h_inv_dim;
p->density.wcount_dh *= h_inv_dim_plus_one;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment