mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use labelUList typedef instead of UList<label> or unallocLabelList
This commit is contained in:
@ -44,7 +44,7 @@ void Foam::cuttingPlane::calcCutCells
|
||||
(
|
||||
const primitiveMesh& mesh,
|
||||
const scalarField& dotProducts,
|
||||
const UList<label>& cellIdLabels
|
||||
const labelUList& cellIdLabels
|
||||
)
|
||||
{
|
||||
const labelListList& cellEdges = mesh.cellEdges();
|
||||
@ -165,7 +165,7 @@ void Foam::cuttingPlane::intersectEdges
|
||||
bool Foam::cuttingPlane::walkCell
|
||||
(
|
||||
const primitiveMesh& mesh,
|
||||
const UList<label>& edgePoint,
|
||||
const labelUList& edgePoint,
|
||||
const label cellI,
|
||||
const label startEdgeI,
|
||||
DynamicList<label>& faceVerts
|
||||
@ -258,7 +258,7 @@ void Foam::cuttingPlane::walkCellCuts
|
||||
(
|
||||
const primitiveMesh& mesh,
|
||||
const bool triangulate,
|
||||
const UList<label>& edgePoint
|
||||
const labelUList& edgePoint
|
||||
)
|
||||
{
|
||||
const pointField& cutPoints = this->points();
|
||||
@ -355,7 +355,7 @@ Foam::cuttingPlane::cuttingPlane
|
||||
const plane& pln,
|
||||
const primitiveMesh& mesh,
|
||||
const bool triangulate,
|
||||
const UList<label>& cellIdLabels
|
||||
const labelUList& cellIdLabels
|
||||
)
|
||||
:
|
||||
plane(pln)
|
||||
@ -372,7 +372,7 @@ void Foam::cuttingPlane::reCut
|
||||
(
|
||||
const primitiveMesh& mesh,
|
||||
const bool triangulate,
|
||||
const UList<label>& cellIdLabels
|
||||
const labelUList& cellIdLabels
|
||||
)
|
||||
{
|
||||
MeshStorage::clear();
|
||||
@ -396,7 +396,7 @@ void Foam::cuttingPlane::reCut
|
||||
// remap action on triangulation
|
||||
void Foam::cuttingPlane::remapFaces
|
||||
(
|
||||
const UList<label>& faceMap
|
||||
const labelUList& faceMap
|
||||
)
|
||||
{
|
||||
// recalculate the cells cut
|
||||
|
||||
@ -78,7 +78,7 @@ class cuttingPlane
|
||||
(
|
||||
const primitiveMesh&,
|
||||
const scalarField& dotProducts,
|
||||
const UList<label>& cellIdLabels = UList<label>::null()
|
||||
const labelUList& cellIdLabels = labelUList::null()
|
||||
);
|
||||
|
||||
//- Determine intersection points (cutPoints).
|
||||
@ -94,7 +94,7 @@ class cuttingPlane
|
||||
static bool walkCell
|
||||
(
|
||||
const primitiveMesh&,
|
||||
const UList<label>& edgePoint,
|
||||
const labelUList& edgePoint,
|
||||
const label cellI,
|
||||
const label startEdgeI,
|
||||
DynamicList<label>& faceVerts
|
||||
@ -105,7 +105,7 @@ class cuttingPlane
|
||||
(
|
||||
const primitiveMesh& mesh,
|
||||
const bool triangulate,
|
||||
const UList<label>& edgePoint
|
||||
const labelUList& edgePoint
|
||||
);
|
||||
|
||||
|
||||
@ -123,11 +123,11 @@ protected:
|
||||
(
|
||||
const primitiveMesh&,
|
||||
const bool triangulate,
|
||||
const UList<label>& cellIdLabels = UList<label>::null()
|
||||
const labelUList& cellIdLabels = labelUList::null()
|
||||
);
|
||||
|
||||
//- remap action on triangulation or cleanup
|
||||
virtual void remapFaces(const UList<label>& faceMap);
|
||||
virtual void remapFaces(const labelUList& faceMap);
|
||||
|
||||
public:
|
||||
|
||||
@ -140,7 +140,7 @@ public:
|
||||
const plane&,
|
||||
const primitiveMesh&,
|
||||
const bool triangulate,
|
||||
const UList<label>& cellIdLabels = UList<label>::null()
|
||||
const labelUList& cellIdLabels = labelUList::null()
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -74,7 +74,7 @@ void Foam::meshToMesh::calcAddressing()
|
||||
forAll(patchesFrom, patchI)
|
||||
{
|
||||
// get reference to cells next to the boundary
|
||||
const unallocLabelList& bCells = patchesFrom[patchI].faceCells();
|
||||
const labelUList& bCells = patchesFrom[patchI].faceCells();
|
||||
|
||||
forAll(bCells, faceI)
|
||||
{
|
||||
|
||||
@ -102,7 +102,7 @@ Foam::isoSurface::adaptPatchFields
|
||||
|
||||
// Note: cannot use patchInternalField since uses emptyFvPatch::size
|
||||
// Do our own internalField instead.
|
||||
const unallocLabelList& faceCells =
|
||||
const labelUList& faceCells =
|
||||
mesh.boundary()[patchI].patch().faceCells();
|
||||
|
||||
Field<Type>& pfld = sliceFld.boundaryField()[patchI];
|
||||
|
||||
@ -150,7 +150,7 @@ bool Foam::sampledPatch::update()
|
||||
// remap action on triangulation
|
||||
void Foam::sampledPatch::remapFaces
|
||||
(
|
||||
const UList<label>& faceMap
|
||||
const labelUList& faceMap
|
||||
)
|
||||
{
|
||||
// recalculate the cells cut
|
||||
|
||||
@ -86,7 +86,7 @@ class sampledPatch
|
||||
|
||||
|
||||
//- remap action on triangulation or cleanup
|
||||
virtual void remapFaces(const UList<label>& faceMap);
|
||||
virtual void remapFaces(const labelUList& faceMap);
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user