ListOps::identity -> identityMap

to avoid confusion with the tensor identity.
This commit is contained in:
Henry Weller
2023-02-03 17:12:31 +00:00
parent efca6df9f7
commit 4dbc23c141
125 changed files with 351 additions and 346 deletions

View File

@ -192,7 +192,7 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::setPatchFaces()
const fvPatch& fvp = mesh_.boundary()[patchId];
faceId_ = identity(fvp.size());
faceId_ = identityMap(fvp.size());
facePatchId_ = labelList(fvp.size(), patchId);
faceSign_ = labelList(fvp.size(), 1);
@ -208,7 +208,7 @@ void Foam::functionObjects::fieldValues::surfaceFieldValue::setPatchFaces()
&& refCast<const processorCyclicFvPatch>(fvp).referPatchID() == patchId
)
{
faceId_.append(identity(fvp.size()));
faceId_.append(identityMap(fvp.size()));
facePatchId_.append(labelList(fvp.size(), patchi));
faceSign_.append(labelList(fvp.size(), 1));
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -336,7 +336,7 @@ bool Foam::functionObjects::layerAverage::write()
typeName,
coordSet
(
identity(layerCentre_.size()),
identityMap(layerCentre_.size()),
word::null,
layerCentre_,
coordSet::axisTypeNames_[coordSet::axisType::DISTANCE],

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2022-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -455,7 +455,7 @@ void Foam::functionObjects::patchCutLayerAverage::initialise()
const scalar xMin = gMin(pointXs), xMax = gMax(pointXs);
scalarField plotXs
(
(xMin + scalarList(identity(nPlot))/(nPlot - 1)*(xMax - xMin))
(xMin + scalarList(identityMap(nPlot))/(nPlot - 1)*(xMax - xMin))
);
// Names and fields for debug output of the counts, to observe the effect
@ -754,7 +754,7 @@ bool Foam::functionObjects::patchCutLayerAverage::write()
typeName,
coordSet
(
identity(layerPositions_.size()),
identityMap(layerPositions_.size()),
word::null,
layerPositions_,
coordSet::axisTypeNames_[coordSet::axisType::DISTANCE],