From 9d66a8d1c71c0a484c99b55f2e1f1e43ae005779 Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Thu, 25 May 2017 11:44:42 +0100 Subject: [PATCH] Set the value of h_max correctly. --- tests/test27cells.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test27cells.c b/tests/test27cells.c index a0f541d171..2377cef7b3 100644 --- a/tests/test27cells.c +++ b/tests/test27cells.c @@ -156,7 +156,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h, /* Cell properties */ cell->split = 0; - cell->h_max = h; + cell->h_max = size * h / (float)n; cell->count = count; cell->dx_max_part = 0.; cell->dx_max_sort = 0.; -- GitLab