OpenFOAM libraries: Updated to use the new const-safe tmp
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
EXE_INC = \
|
||||
EXE_INC = -DCONST_TMP \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -45,7 +45,7 @@ Foam::tmp<Foam::vectorField> Foam::layerAdditionRemoval::extrusionDir() const
|
||||
const labelList& mp = masterFaceLayer.meshPoints();
|
||||
|
||||
tmp<vectorField> textrusionDir(new vectorField(mp.size()));
|
||||
vectorField& extrusionDir = textrusionDir();
|
||||
vectorField& extrusionDir = textrusionDir.ref();
|
||||
|
||||
if (setLayerPairing())
|
||||
{
|
||||
|
||||
@ -119,7 +119,7 @@ Foam::tmp<Foam::scalarField> Foam::motionSmootherAlgo::calcEdgeWeights
|
||||
const edgeList& edges = mesh_.edges();
|
||||
|
||||
tmp<scalarField> twght(new scalarField(edges.size()));
|
||||
scalarField& wght = twght();
|
||||
scalarField& wght = twght.ref();
|
||||
|
||||
forAll(edges, edgeI)
|
||||
{
|
||||
@ -815,7 +815,7 @@ Foam::tmp<Foam::pointField> Foam::motionSmootherAlgo::curPoints() const
|
||||
tmp<pointField> tnewPoints(oldPoints_ + totalDisplacement.internalField());
|
||||
|
||||
// Correct for 2-D motion
|
||||
modifyMotionPoints(tnewPoints());
|
||||
modifyMotionPoints(tnewPoints.ref());
|
||||
|
||||
return tnewPoints;
|
||||
}
|
||||
|
||||
@ -159,7 +159,7 @@ Foam::motionSmootherAlgo::avg
|
||||
dimensioned<Type>("zero", fld.dimensions(), pTraits<Type>::zero)
|
||||
)
|
||||
);
|
||||
GeometricField<Type, pointPatchField, pointMesh>& res = tres();
|
||||
GeometricField<Type, pointPatchField, pointMesh>& res = tres.ref();
|
||||
|
||||
const polyMesh& mesh = fld.mesh()();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user