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

@ -78,10 +78,10 @@ Foam::scalarListList Foam::VF::viewFactor2AI::calculate
const labelListList& visibleFaceFaces,
const pointField& compactCf,
const vectorField& compactSf,
const List<List<vector>>& compactFineSf,
const List<List<point>>& compactFineCf,
const DynamicList<List<point>>& compactPoints,
const DynamicList<label>& compactPatchId
const UList<List<vector>>& compactFineSf,
const UList<List<point>>& compactFineCf,
const UList<List<point>>& compactPoints,
const UList<label>& compactPatchId
) const
{
// Fill local view factor matrix

View File

@ -85,10 +85,10 @@ protected:
const labelListList& visibleFaceFaces,
const pointField& compactCf,
const vectorField& compactSf,
const List<List<vector>>& compactFineSf,
const List<List<point>>& compactFineCf,
const DynamicList<List<point>>& compactPoints,
const DynamicList<label>& compactPatchId
const UList<List<vector>>& compactFineSf,
const UList<List<point>>& compactFineCf,
const UList<List<point>>& compactPoints,
const UList<label>& compactPatchId
) const;

View File

@ -84,10 +84,10 @@ Foam::scalarListList Foam::VF::viewFactor2LI::calculate
const labelListList& visibleFaceFaces,
const pointField& compactCf,
const vectorField& compactSf,
const List<List<vector>>& compactFineSf,
const List<List<point>>& compactFineCf,
const DynamicList<List<point>>& compactPoints,
const DynamicList<label>& compactPatchId
const UList<List<vector>>& compactFineSf,
const UList<List<point>>& compactFineCf,
const UList<List<point>>& compactPoints,
const UList<label>& compactPatchId
) const
{
// Fill local view factor matrix

View File

@ -98,10 +98,10 @@ protected:
const labelListList& visibleFaceFaces,
const pointField& compactCf,
const vectorField& compactSf,
const List<List<vector>>& compactFineSf,
const List<List<point>>& compactFineCf,
const DynamicList<List<point>>& compactPoints,
const DynamicList<label>& compactPatchId
const UList<List<vector>>& compactFineSf,
const UList<List<point>>& compactFineCf,
const UList<List<point>>& compactPoints,
const UList<label>& compactPatchId
) const;

View File

@ -63,10 +63,10 @@ Foam::scalarListList Foam::VF::viewFactorHottel::calculate
const labelListList& visibleFaceFaces,
const pointField& compactCf,
const vectorField& compactSf,
const List<List<vector>>& compactFineSf,
const List<List<point>>& compactFineCf,
const DynamicList<List<point>>& compactPoints,
const DynamicList<label>& compactPatchId
const UList<List<vector>>& compactFineSf,
const UList<List<point>>& compactFineCf,
const UList<List<point>>& compactPoints,
const UList<label>& compactPatchId
) const
{
// Fill local view factor matrix

View File

@ -103,10 +103,10 @@ protected:
const labelListList& visibleFaceFaces,
const pointField& compactCf,
const vectorField& compactSf,
const List<List<vector>>& compactFineSf,
const List<List<point>>& compactFineCf,
const DynamicList<List<point>>& compactPoints,
const DynamicList<label>& compactPatchId
const UList<List<vector>>& compactFineSf,
const UList<List<point>>& compactFineCf,
const UList<List<point>>& compactPoints,
const UList<label>& compactPatchId
) const;

View File

@ -117,10 +117,10 @@ protected:
const labelListList& visibleFaceFaces,
const pointField& compactCoarseCf,
const vectorField& compactCoarseSf,
const List<List<vector>>& compactFineSf,
const List<List<point>>& compactFineCf,
const DynamicList<List<point>>& compactPoints,
const DynamicList<label>& compactPatchId
const UList<List<vector>>& compactFineSf,
const UList<List<point>>& compactFineCf,
const UList<List<point>>& compactPoints,
const labelUList& compactPatchId
) const = 0;

View File

@ -55,7 +55,7 @@ Description
void isoFacesToFile
(
const DynamicList<List<point>>& faces,
const UList<List<point>>& faces,
const word& fileName
)
{
@ -65,7 +65,7 @@ void isoFacesToFile
if (Pstream::parRun())
{
// Collect points from all the processors
List<DynamicList<List<point>>> allProcFaces(Pstream::nProcs());
List<List<List<point>>> allProcFaces(Pstream::nProcs());
allProcFaces[Pstream::myProcNo()] = faces;
Pstream::gatherList(allProcFaces);
@ -73,9 +73,9 @@ void isoFacesToFile
{
Info<< "Writing file: " << fileName << endl;
for (const DynamicList<List<point>>& procFaces : allProcFaces)
for (const auto& procFaces : allProcFaces)
{
for (const List<point>& facePts : procFaces)
for (const auto& facePts : procFaces)
{
os.writeFace(facePts);
}
@ -86,7 +86,7 @@ void isoFacesToFile
{
Info<< "Writing file: " << fileName << endl;
for (const List<point>& facePts : faces)
for (const auto& facePts : faces)
{
os.writeFace(facePts);
}