STYLE: avoid implicit cast of UList to List

This commit is contained in:
Mark Olesen
2025-04-08 11:00:11 +02:00
parent 0be19b7fae
commit 59f3c55871
119 changed files with 298 additions and 336 deletions

View File

@ -294,7 +294,7 @@ void Foam::mergeAndWrite
forAll(pbm, patchi)
{
const polyPatch& pp = pbm[patchi];
const labelList& fc = pp.faceCells();
const labelUList& fc = pp.faceCells();
forAll(fc, i)
{
bndInSet[pp.start()+i-mesh.nInternalFaces()] = isInSet[fc[i]];
@ -319,7 +319,7 @@ void Foam::mergeAndWrite
forAll(pbm, patchi)
{
const polyPatch& pp = pbm[patchi];
const labelList& fc = pp.faceCells();
const labelUList& fc = pp.faceCells();
if (pp.coupled())
{
forAll(fc, i)

View File

@ -33,6 +33,7 @@ License
#include "mapPolyMesh.H"
#include "edgeFaceCirculator.H"
#include "mergePoints.H"
#include "DynamicList.H"
#include "OFstream.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -98,20 +99,14 @@ void Foam::meshDualiser::dumpPolyTopoChange
Info<< "Dumping current polyTopoChange. Faces to " << str1.name()
<< " , points and edges to " << str2.name() << endl;
const DynamicList<point>& points = meshMod.points();
forAll(points, pointi)
for (const auto& p : meshMod.points())
{
meshTools::writeOBJ(str1, points[pointi]);
meshTools::writeOBJ(str2, points[pointi]);
meshTools::writeOBJ(str1, p);
meshTools::writeOBJ(str2, p);
}
const DynamicList<face>& faces = meshMod.faces();
forAll(faces, facei)
for (const face& f : meshMod.faces())
{
const face& f = faces[facei];
str1<< 'f';
forAll(f, fp)
{
@ -210,7 +205,7 @@ Foam::label Foam::meshDualiser::addInternalFace
const bool edgeOrder,
const label dualCell0,
const label dualCell1,
const DynamicList<label>& verts,
const labelUList& verts,
polyTopoChange& meshMod
) const
{
@ -326,7 +321,7 @@ Foam::label Foam::meshDualiser::addBoundaryFace
const label dualCelli,
const label patchi,
const DynamicList<label>& verts,
const labelUList& verts,
polyTopoChange& meshMod
) const
{

View File

@ -46,10 +46,9 @@ SourceFiles
\*---------------------------------------------------------------------------*/
#ifndef meshDualiser_H
#define meshDualiser_H
#ifndef Foam_meshDualiser_H
#define Foam_meshDualiser_H
#include "DynamicList.H"
#include "bitSet.H"
#include "boolList.H"
#include "typeInfo.H"
@ -124,7 +123,7 @@ class meshDualiser
const bool edgeOrder,
const label dualCell0,
const label dualCell1,
const DynamicList<label>& verts,
const labelUList& verts,
polyTopoChange& meshMod
) const;
@ -137,7 +136,7 @@ class meshDualiser
const label dualCelli,
const label patchi,
const DynamicList<label>& verts,
const labelUList& verts,
polyTopoChange& meshMod
) const;