COMP: avoid ambiguous construct from tmp - utils/ pre+post processing

This commit is contained in:
Mark Olesen
2010-12-20 10:37:17 +01:00
parent 25951c0f74
commit a3788fe854
11 changed files with 48 additions and 42 deletions

View File

@ -53,7 +53,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{
Info<< " Reading U" << endl;
volVectorField U(Uheader, mesh);
volTensorField gradU = fvc::grad(U);
volTensorField gradU(fvc::grad(U));
volScalarField Q
(
@ -72,11 +72,11 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
// This is a second way of calculating Q, that delivers results
// very close, but not identical to the first approach.
volSymmTensorField S = symm(gradU); // symmetric part of tensor
volTensorField W = skew(gradU); // anti-symmetric part
volSymmTensorField S(symm(gradU)); // symmetric part of tensor
volTensorField W(skew(gradU)); // anti-symmetric part
volScalarField SS = S&&S;
volScalarField WW = W&&W;
volScalarField SS(S && S);
volScalarField WW(W && W);
volScalarField Q
(