mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: avoid implicit cast of UList to List
This commit is contained in:
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user