From 43ec00e50c3a5f639b356d241872b934cf6a2e97 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Tue, 21 Dec 2010 09:46:55 +0100 Subject: [PATCH] COMP: avoid ambiguous construct from tmp - test/ utils/ - missed these on the first sweep --- applications/test/ODE/Test-ODE.C | 6 +++--- applications/test/fvc/Test-fvc.C | 11 +++++------ applications/test/graphXi/Test-graphXi.C | 8 ++++---- applications/test/lduMatrix/Test-lduMatrix3.C | 2 +- .../miscellaneous/postChannel/calculateFields.H | 8 ++++---- .../velocityField/streamFunction/streamFunction.C | 2 +- .../utilities/surface/surfaceCheck/surfaceCheck.C | 2 +- 7 files changed, 19 insertions(+), 20 deletions(-) diff --git a/applications/test/ODE/Test-ODE.C b/applications/test/ODE/Test-ODE.C index 2a3b8357b9..95af263718 100644 --- a/applications/test/ODE/Test-ODE.C +++ b/applications/test/ODE/Test-ODE.C @@ -129,8 +129,8 @@ int main(int argc, char *argv[]) scalar eps = ::Foam::exp(-scalar(i + 1)); scalar x = xStart; - scalarField y = yStart; - scalarField dydx = dyStart; + scalarField y(yStart); + scalarField dydx(dyStart); scalarField yScale(ode.nEqns(), 1.0); scalar hEst = 0.6; @@ -148,7 +148,7 @@ int main(int argc, char *argv[]) scalar x = xStart; scalar xEnd = x + 1.0; - scalarField y = yStart; + scalarField y(yStart); scalarField yEnd(ode.nEqns()); yEnd[0] = ::Foam::j0(xEnd); diff --git a/applications/test/fvc/Test-fvc.C b/applications/test/fvc/Test-fvc.C index 70d03a692a..133884c7de 100644 --- a/applications/test/fvc/Test-fvc.C +++ b/applications/test/fvc/Test-fvc.C @@ -41,18 +41,17 @@ int main(int argc, char *argv[]) # include "createTime.H" # include "createMesh.H" - volScalarField fx = pow(mesh.C().component(vector::X), 2); + volScalarField fx(pow(mesh.C().component(vector::X), 2)); fx.write(); - volScalarField gradx4 = fvc::grad(fx)().component(vector::X); + volScalarField gradx4(fvc::grad(fx)().component(vector::X)); gradx4.write(); - //volVectorField curlC = fvc::curl(1.0*mesh.C()); - + //volVectorField curlC(fvc::curl(1.0*mesh.C())); //curlC.write(); /* - surfaceScalarField xf = mesh.Cf().component(vector::X); - surfaceScalarField xf4 = pow(xf, 4); + surfaceScalarField xf(mesh.Cf().component(vector::X)); + surfaceScalarField xf4(pow(xf, 4)); for (int i=1; i