Skip to content
Snippets Groups Projects
Commit b39501a1 authored by James Willis's avatar James Willis
Browse files

Use h_pert to modify smoothing lengths.

parent d6590e40
Branches
Tags
1 merge request!396Avx512 fixes
......@@ -122,7 +122,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h,
break;
}
if (h_pert)
part->h = size * h * random_uniform(1.f, 1.1f) / (float)n;
part->h = size * h * random_uniform(1.f, h_pert) / (float)n;
else
part->h = size * h / (float)n;
h_max = fmaxf(h_max, part->h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment