Skip to content

Commit

Permalink
BUG: Changing tmp for scalar field when calling nuEff
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Ferraris committed Aug 5, 2011
1 parent c366948 commit 12c3ec6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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));
Expand All @@ -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;
}
Expand Down

0 comments on commit 12c3ec6

Please sign in to comment.