waveVelocityFvPatchVectorField: Updated for clang

This commit is contained in:
Henry Weller
2017-08-01 12:01:59 +01:00
parent 0308d34c80
commit 0dcc91fc66

View File

@ -142,7 +142,7 @@ void Foam::waveVelocityFvPatchVectorField::updateCoeffs()
const scalarField& phip =
patch().lookupPatchField<surfaceScalarField, scalar>(phiName_);
const scalarField out = pos0(phip);
const scalarField out(pos0(phip));
// Where inflow, fix all velocity components to values specified by the
// wave model.
@ -154,7 +154,7 @@ void Foam::waveVelocityFvPatchVectorField::updateCoeffs()
// specified by the wave model. Tangential components are extrapolated.
const scalar QPhip = gSum(out*phip);
const scalar QWave = gSum(out*(UWave & patch().Sf()));
const vectorField nBySf = patch().Sf()/sqr(patch().magSf());
const vectorField nBySf(patch().Sf()/sqr(patch().magSf()));
if (QPhip > VSMALL)
{
refValue() += out*(QWave/QPhip)*phip*nBySf;