Permalink
Browse files

BUG: Changing tmp for scalar field when calling nuEff

  • Loading branch information...
1 parent c366948 commit 12c3ec607a9dfdad38e44cbc2bc44427b70b291f Sergio Ferraris committed Aug 5, 2011
@@ -118,7 +118,7 @@ void fixedShearStressFvPatchVectorField::updateCoeffs()
const scalarField& ry = patch().deltaCoeffs();
- tmp<scalarField> nuEffw = rasModel.nuEff()().boundaryField()[patchI];
+ const scalarField nuEffw = rasModel.nuEff()().boundaryField()[patchI];
tmp<vectorField> UwUpdated =
tauHat*(tauHat & (tau0_*(1.0/(ry*nuEffw)) + Ui));
@@ -127,7 +127,7 @@ void fixedShearStressFvPatchVectorField::updateCoeffs()
if (debug)
{
- tmp<vectorField> nHat = this->patch().nf();
+ const vectorField nHat = this->patch().nf();
volSymmTensorField Reff(rasModel.devReff());
Info << "tau : " << (nHat & Reff.boundaryField()[patchI])() << endl;
}

0 comments on commit 12c3ec6

Please sign in to comment.