STYLE: use sortedToc() instead of toc() followed by sort()

This commit is contained in:
Mark Olesen
2018-07-25 10:29:20 +02:00
parent 8610a95ad8
commit a6b84927e4
4 changed files with 10 additions and 29 deletions

View File

@ -720,12 +720,9 @@ bool Foam::polyMeshZipUpCells(polyMesh& mesh)
if (problemCells.size())
{
// This cycle has failed. Print out the problem cells
labelList toc(problemCells.toc());
sort(toc);
FatalErrorInFunction
<< "Found " << problemCells.size() << " problem cells." << nl
<< "Cells: " << toc
<< "Cells: " << problemCells.sortedToc()
<< abort(FatalError);
}