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

@ -104,7 +104,7 @@ int main(int argc, char *argv[])
// Calculate nut
tmp<volScalarField> tnut = turbulence->nut();
volScalarField& nut = tnut();
volScalarField S = mag(dev(symm(fvc::grad(U))));
volScalarField S(mag(dev(symm(fvc::grad(U)))));
nut = sqr(kappa*min(y, ybl))*::sqrt(2)*S;
if (args.optionFound("writenut"))

View File

@ -47,7 +47,7 @@ License
);
Info<< "Calculating wall distance field" << endl;
volScalarField y = wallDist(mesh).y();
volScalarField y(wallDist(mesh).y());
// Set the mean boundary-layer thickness
dimensionedScalar ybl("ybl", dimLength, 0);