COMP: correction for Clang

This commit is contained in:
Andrew Heather
2018-04-18 13:33:09 +01:00
parent ed4564a805
commit 21369e4702

View File

@ -176,7 +176,7 @@ void Foam::outletMachNumberPressureFvPatchScalarField::updateCoeffs()
const vectorField UbOld(U.oldTime().boundaryField()[patchi]); const vectorField UbOld(U.oldTime().boundaryField()[patchi]);
// relax U // relax U
Ub = relax_*UbOld + (1 -relax_)*Ub; Ub = relax_*UbOld + (1 - relax_)*Ub;
const scalarField gamma(thermoPtr->gamma()().boundaryField()[patchi]); const scalarField gamma(thermoPtr->gamma()().boundaryField()[patchi]);
@ -214,7 +214,7 @@ void Foam::outletMachNumberPressureFvPatchScalarField::updateCoeffs()
<< exit(FatalError); << exit(FatalError);
} }
const scalarField r = pBack_/ptot; const scalarField r(pBack_/ptot);
const scalar area = gSum(mag(patch().Sf())); const scalar area = gSum(mag(patch().Sf()));
M = M =
A1_/(c1_*area) A1_/(c1_*area)