Skip to content
Snippets Groups Projects
Commit 5685459a authored by mattijs's avatar mattijs
Browse files

BUG: decompositionMethod : calcCellCells for locally 0 cells

parent 0f5ec6b9
Branches
Tags
No related merge requests found
...@@ -398,7 +398,15 @@ void Foam::decompositionMethod::calcCellCells ...@@ -398,7 +398,15 @@ void Foam::decompositionMethod::calcCellCells
// Create global cell numbers // Create global cell numbers
// ~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~
label nAgglom = max(agglom)+1; label nAgglom;
if (agglom.size())
{
nAgglom = max(agglom)+1;
}
else
{
nAgglom = 0;
}
globalIndex globalAgglom(nAgglom); globalIndex globalAgglom(nAgglom);
const labelList& faceOwner = mesh.faceOwner(); const labelList& faceOwner = mesh.faceOwner();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment