BUG: indexedOctree: construct with shapes outside bb

This commit is contained in:
mattijs
2013-09-23 20:37:28 +01:00
parent 60bd776b1a
commit 333e6541f3

View File

@ -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;