mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: avoid ambiguous construct from tmp
This commit is contained in:
@ -138,8 +138,10 @@ public:
|
||||
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||
) const
|
||||
{
|
||||
surfaceScalarField blendingFactor =
|
||||
tLimitedScheme_().limiter(vf);
|
||||
surfaceScalarField blendingFactor
|
||||
(
|
||||
tLimitedScheme_().limiter(vf)
|
||||
);
|
||||
|
||||
return
|
||||
blendingFactor*tScheme1_().weights(vf)
|
||||
@ -151,8 +153,10 @@ public:
|
||||
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >
|
||||
interpolate(const GeometricField<Type, fvPatchField, volMesh>& vf) const
|
||||
{
|
||||
surfaceScalarField blendingFactor =
|
||||
tLimitedScheme_().limiter(vf);
|
||||
surfaceScalarField blendingFactor
|
||||
(
|
||||
tLimitedScheme_().limiter(vf)
|
||||
);
|
||||
|
||||
return
|
||||
blendingFactor*tScheme1_().interpolate(vf)
|
||||
@ -175,8 +179,10 @@ public:
|
||||
const GeometricField<Type, fvPatchField, volMesh>& vf
|
||||
) const
|
||||
{
|
||||
surfaceScalarField blendingFactor =
|
||||
tLimitedScheme_().limiter(vf);
|
||||
surfaceScalarField blendingFactor
|
||||
(
|
||||
tLimitedScheme_().limiter(vf)
|
||||
);
|
||||
|
||||
if (tScheme1_().corrected())
|
||||
{
|
||||
|
||||
@ -232,7 +232,7 @@ Foam::pointField Foam::searchableBox::coordinates() const
|
||||
{
|
||||
pointField ctrs(6);
|
||||
|
||||
const pointField pts = treeBoundBox::points();
|
||||
const pointField pts(treeBoundBox::points());
|
||||
const faceList& fcs = treeBoundBox::faces;
|
||||
|
||||
forAll(fcs, i)
|
||||
|
||||
@ -36,7 +36,7 @@ void Foam::patchProbes::sampleAndWrite
|
||||
const GeometricField<Type, fvPatchField, volMesh>& vField
|
||||
)
|
||||
{
|
||||
Field<Type> values = sample(vField);
|
||||
Field<Type> values(sample(vField));
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user