Commit 399e160e authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: avoid ambiguous construct from tmp

parent ee9d95f4
......@@ -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())
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment