Skip to content
Snippets Groups Projects
Commit 129d1224 authored by mattijs's avatar mattijs
Browse files

BUG: renumberMesh: multiple processor faces on cells

parent 42069b50
Branches
Tags
No related merge requests found
...@@ -717,7 +717,6 @@ int main(int argc, char *argv[]) ...@@ -717,7 +717,6 @@ int main(int argc, char *argv[])
Info<< "Writing renumber maps (new to old) to polyMesh." << nl Info<< "Writing renumber maps (new to old) to polyMesh." << nl
<< endl; << endl;
} }
} }
else else
{ {
...@@ -889,8 +888,6 @@ int main(int argc, char *argv[]) ...@@ -889,8 +888,6 @@ int main(int argc, char *argv[])
mesh, mesh,
mesh.cellCentres() mesh.cellCentres()
); );
labelList reverseCellOrder = invert(mesh.nCells(), cellOrder);
if (sortCoupledFaceCells) if (sortCoupledFaceCells)
{ {
...@@ -907,8 +904,10 @@ int main(int argc, char *argv[]) ...@@ -907,8 +904,10 @@ int main(int argc, char *argv[])
} }
} }
labelList reverseCellOrder = invert(mesh.nCells(), cellOrder);
labelList bndCells(nBndCells);
labelList bndCellMap(nBndCells); labelList bndCellMap(nBndCells);
labelList bndCells(bndCellMap);
nBndCells = 0; nBndCells = 0;
forAll(pbm, patchI) forAll(pbm, patchI)
{ {
...@@ -918,15 +917,19 @@ int main(int argc, char *argv[]) ...@@ -918,15 +917,19 @@ int main(int argc, char *argv[])
forAll(faceCells, i) forAll(faceCells, i)
{ {
label cellI = faceCells[i]; label cellI = faceCells[i];
bndCells[nBndCells] = cellI;
bndCellMap[nBndCells++] = reverseCellOrder[cellI]; if (reverseCellOrder[cellI] != -1)
{
bndCells[nBndCells] = cellI;
bndCellMap[nBndCells++] = reverseCellOrder[cellI];
reverseCellOrder[cellI] = -1;
}
} }
} }
} }
bndCells.setSize(nBndCells); bndCells.setSize(nBndCells);
bndCellMap.setSize(nBndCells); bndCellMap.setSize(nBndCells);
// Sort // Sort
labelList order; labelList order;
sortedOrder(bndCellMap, order); sortedOrder(bndCellMap, order);
...@@ -942,7 +945,7 @@ int main(int argc, char *argv[]) ...@@ -942,7 +945,7 @@ int main(int argc, char *argv[])
} }
Info<< "Ordered all " << nBndCells << " cells with a coupled face" Info<< "Ordered all " << nBndCells << " cells with a coupled face"
<< " to the end of the cell list, starting at " << sortedI << " to the end of the cell list, starting at " << sortedI
<< endl; << endl;
// Compact // Compact
......
...@@ -90,4 +90,10 @@ zoltanCoeffs ...@@ -90,4 +90,10 @@ zoltanCoeffs
} }
//boundaryFirstCoeffs
//{
// reverse true;
//}
// ************************************************************************* // // ************************************************************************* //
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment