ListOps::identity -> identityMap
to avoid confusion with the tensor identity.
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
@ -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],
|
||||
|
||||
@ -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],
|
||||
|
||||
Reference in New Issue
Block a user