diff --git a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C index 10838a6dac0250ed91bc40e515d0f8ade11bf1d2..b868d8baa50f808a025e83358dcb516477053ce9 100644 --- a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsJayatillekeWallFunction/alphaSgsJayatillekeWallFunctionFvPatchScalarField.C @@ -191,7 +191,7 @@ void alphaSgsJayatillekeWallFunctionFvPatchScalarField::evaluate const label patchI = patch().index(); const scalarField& muw = lesModel.mu().boundaryField()[patchI]; - const scalarField& muSgsw = lesModel.muSgs()().boundaryField()[patchI]; + const scalarField muSgsw = lesModel.muSgs()().boundaryField()[patchI]; const scalarField& alphaw = lesModel.alpha().boundaryField()[patchI]; scalarField& alphaSgsw = *this; diff --git a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsWallFunction/alphaSgsWallFunctionFvPatchScalarField.C b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsWallFunction/alphaSgsWallFunctionFvPatchScalarField.C index 3c697c5c1721444a6abf090b1fbd15304bd3b9e3..5d59e7f6d774d9dfe8b3f35bd69e4a6677be8a6a 100644 --- a/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsWallFunction/alphaSgsWallFunctionFvPatchScalarField.C +++ b/src/turbulenceModels/compressible/LES/derivedFvPatchFields/wallFunctions/alphaSgsWallFunctions/alphaSgsWallFunction/alphaSgsWallFunctionFvPatchScalarField.C @@ -137,7 +137,7 @@ void alphaSgsWallFunctionFvPatchScalarField::evaluate const scalar Prt = lesModel.Prt().value(); // Get the turbulent viscosity at the wall - const scalarField& muSgsw = + const scalarField muSgsw = lesModel.muSgs()().boundaryField()[patch().index()]; operator==(muSgsw/Prt);