From 79bc319ec58a61228282a1f654fb5ea0d42220d1 Mon Sep 17 00:00:00 2001 From: L Laniewski-Wollk Date: Tue, 20 Feb 2024 21:34:28 +1000 Subject: [PATCH] Make the SolidGrid depth grow persistent --- src/SolidGrid.h | 2 +- src/SolidGrid.hpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/SolidGrid.h b/src/SolidGrid.h index 0ce721077..a614b9fb1 100644 --- a/src/SolidGrid.h +++ b/src/SolidGrid.h @@ -167,7 +167,7 @@ class SolidGrid { public: BALLS* balls; inline SolidGrid() { - depth = 0; + depth = 4; } void Build(); void InitFinder(finder_t&); diff --git a/src/SolidGrid.hpp b/src/SolidGrid.hpp index 301a632c2..585a08fe1 100644 --- a/src/SolidGrid.hpp +++ b/src/SolidGrid.hpp @@ -58,7 +58,6 @@ void SolidGrid::Build () { } size_t grid_size = 1; for (int k=0; k<3; k++) grid_size = grid_size * (maxs[k]-mins[k]+1); - depth = 4; while (TryDepth(grid_size)) { depth = depth*2; output("Too many particles per bin in SolidGrid. Increasing bin size to %d\n", depth);