Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG: Changing tmp for scalar field when calling nuEff

  • Loading branch information...
commit 12c3ec607a9dfdad38e44cbc2bc44427b70b291f 1 parent c366948
Sergio Ferraris authored
View
4 ...enceModels/incompressible/RAS/derivedFvPatchFields/fixedShearStress/fixedShearStressFvPatchVectorField.C
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.