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

Set the value of h_max correctly.

parent 0c4ceb01
No related branches found
No related tags found
1 merge request!348Fix pair vec
...@@ -156,7 +156,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h, ...@@ -156,7 +156,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h,
/* Cell properties */ /* Cell properties */
cell->split = 0; cell->split = 0;
cell->h_max = h; cell->h_max = size * h / (float)n;
cell->count = count; cell->count = count;
cell->dx_max_part = 0.; cell->dx_max_part = 0.;
cell->dx_max_sort = 0.; cell->dx_max_sort = 0.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment