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: ...@@ -138,8 +138,10 @@ public:
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) const ) const
{ {
surfaceScalarField blendingFactor = surfaceScalarField blendingFactor
tLimitedScheme_().limiter(vf); (
tLimitedScheme_().limiter(vf)
);
return return
blendingFactor*tScheme1_().weights(vf) blendingFactor*tScheme1_().weights(vf)
...@@ -151,8 +153,10 @@ public: ...@@ -151,8 +153,10 @@ public:
tmp<GeometricField<Type, fvsPatchField, surfaceMesh> > tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >
interpolate(const GeometricField<Type, fvPatchField, volMesh>& vf) const interpolate(const GeometricField<Type, fvPatchField, volMesh>& vf) const
{ {
surfaceScalarField blendingFactor = surfaceScalarField blendingFactor
tLimitedScheme_().limiter(vf); (
tLimitedScheme_().limiter(vf)
);
return return
blendingFactor*tScheme1_().interpolate(vf) blendingFactor*tScheme1_().interpolate(vf)
...@@ -175,8 +179,10 @@ public: ...@@ -175,8 +179,10 @@ public:
const GeometricField<Type, fvPatchField, volMesh>& vf const GeometricField<Type, fvPatchField, volMesh>& vf
) const ) const
{ {
surfaceScalarField blendingFactor = surfaceScalarField blendingFactor
tLimitedScheme_().limiter(vf); (
tLimitedScheme_().limiter(vf)
);
if (tScheme1_().corrected()) if (tScheme1_().corrected())
{ {
......
...@@ -232,7 +232,7 @@ Foam::pointField Foam::searchableBox::coordinates() const ...@@ -232,7 +232,7 @@ Foam::pointField Foam::searchableBox::coordinates() const
{ {
pointField ctrs(6); pointField ctrs(6);
const pointField pts = treeBoundBox::points(); const pointField pts(treeBoundBox::points());
const faceList& fcs = treeBoundBox::faces; const faceList& fcs = treeBoundBox::faces;
forAll(fcs, i) forAll(fcs, i)
......
...@@ -36,7 +36,7 @@ void Foam::patchProbes::sampleAndWrite ...@@ -36,7 +36,7 @@ void Foam::patchProbes::sampleAndWrite
const GeometricField<Type, fvPatchField, volMesh>& vField const GeometricField<Type, fvPatchField, volMesh>& vField
) )
{ {
Field<Type> values = sample(vField); Field<Type> values(sample(vField));
if (Pstream::master()) 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