From 333e6541f3169d1f4bbf8317a18d214718e4fff7 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 23 Sep 2013 20:37:28 +0100 Subject: [PATCH] BUG: indexedOctree: construct with shapes outside bb --- src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C index 11c9d3be2a4..541a008d6ba 100644 --- a/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C +++ b/src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C @@ -2476,7 +2476,7 @@ Foam::indexedOctree<Type>::indexedOctree while (true) { - compactContents + label nNodes = compactContents ( nodes, contents, @@ -2487,7 +2487,7 @@ Foam::indexedOctree<Type>::indexedOctree compactI ); - if (compactI == 0) + if (compactI == 0 && nNodes == 0) { // Did not put contents anywhere - are outside bb! break; -- GitLab