COMP: avoid ambiguous construct from tmp

This commit is contained in:
Mark Olesen
2010-12-21 11:54:14 +01:00
parent ee9d95f49f
commit 399e160efb
3 changed files with 14 additions and 8 deletions

View File

@ -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())
{

View File

@ -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)

View File

@ -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())
{