Commit b39501a1 authored by James Willis's avatar James Willis
Browse files

Use h_pert to modify smoothing lengths.

parent d6590e40
......@@ -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);
......
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