From 08a3023eecb825b72b628278e02c16f2a48ea932 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 5 Apr 2011 17:37:07 +0100 Subject: [PATCH] ENH: removed ambigous construction from tmp --- .../solvers/multiphase/interFoam/LTSInterFoam/setrDeltaT.H | 2 +- .../surfaceInterpolation/schemes/pointLinear/pointLinear.C | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/applications/solvers/multiphase/interFoam/LTSInterFoam/setrDeltaT.H b/applications/solvers/multiphase/interFoam/LTSInterFoam/setrDeltaT.H index 1e8d8da3e7..e7aec6f31a 100644 --- a/applications/solvers/multiphase/interFoam/LTSInterFoam/setrDeltaT.H +++ b/applications/solvers/multiphase/interFoam/LTSInterFoam/setrDeltaT.H @@ -64,7 +64,7 @@ // Further limit the reciprocal time-step // in the vicinity of the interface - volScalarField alpha1Bar = fvc::average(alpha1); + volScalarField alpha1Bar(fvc::average(alpha1)); rDeltaT.dimensionedInternalField() = max ( diff --git a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.C b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.C index bd7d2aaab9..7a73cbf338 100644 --- a/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.C +++ b/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.C @@ -39,8 +39,10 @@ correction { const fvMesh& mesh = this->mesh(); - GeometricField pvf = - volPointInterpolation::New(mesh).interpolate(vf); + GeometricField pvf + ( + volPointInterpolation::New(mesh).interpolate(vf) + ); tmp > tsfCorr = linearInterpolate(vf);