STYLE: add push_back() method to dlLibraryTable, cellTable, boundaryRegion

- same as append() did, but with more consistent names

STYLE: replace special purpose append() with container method

STYLE: update code style
This commit is contained in:
Mark Olesen
2024-04-16 17:23:53 +02:00
parent b6203a7de5
commit 6cce1cdc8b
10 changed files with 429 additions and 376 deletions

View File

@ -132,9 +132,6 @@ class domainDecomposition
labelList& elementToZone
);
//- Append single element to list
static void append(labelList&, const label);
//- Add face to inter-processor patch
void addInterProcFace
(

View File

@ -39,14 +39,6 @@ Description
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
void Foam::domainDecomposition::append(labelList& lst, const label elem)
{
label sz = lst.size();
lst.setSize(sz+1);
lst[sz] = elem;
}
void Foam::domainDecomposition::addInterProcFace
(
const label facei,
@ -354,9 +346,8 @@ void Foam::domainDecomposition::decomposeMesh()
procFaceAddressing_[proci].size();
// Add size as last element to substarts and transfer
append
subPatchStarts[proci][interPatch].append
(
subPatchStarts[proci][interPatch],
curInterPatchFaces[interPatch].size()
);
procProcessorPatchSubPatchIDs_[proci][i].transfer

View File

@ -103,8 +103,8 @@ void Foam::domainDecomposition::processInterCyclics
if (interPatchFaces[proci][interI].size() > oldSz)
{
// Added faces to this interface. Add an entry
append(subPatchIDs[proci][interI], patchi);
append(subPatchStarts[proci][interI], oldSz);
subPatchIDs[proci][interI].append(patchi);
subPatchStarts[proci][interI].append(oldSz);
}
}
}