BUG: decompositionMethod : calcCellCells for locally 0 cells

This commit is contained in:
mattijs
2011-02-15 12:48:23 +00:00
parent 0f5ec6b9bc
commit 5685459a9f

View File

@ -398,7 +398,15 @@ void Foam::decompositionMethod::calcCellCells
// Create global cell numbers
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
label nAgglom = max(agglom)+1;
label nAgglom;
if (agglom.size())
{
nAgglom = max(agglom)+1;
}
else
{
nAgglom = 0;
}
globalIndex globalAgglom(nAgglom);
const labelList& faceOwner = mesh.faceOwner();