diff --git a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C index a40f6cdfe8..4ea359ee5b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/matchedFlowRateOutletVelocity/matchedFlowRateOutletVelocityFvPatchVectorField.C @@ -136,7 +136,7 @@ void Foam::matchedFlowRateOutletVelocityFvPatchVectorField::updateValues const fvPatch& p = patch(); const fvPatch& inletPatch = p.boundaryMesh()[inletPatchID]; - const vectorField n = p.nf(); + const vectorField n(p.nf()); // Extrapolate patch velocity vectorField Up(patchInternalField()); diff --git a/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C index 007c4ad93b..79ee1cb2c9 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/swirlInletVelocity/swirlInletVelocityFvPatchVectorField.C @@ -127,9 +127,9 @@ void Foam::swirlInletVelocityFvPatchVectorField::updateCoeffs() const scalarField magr(mag(r)); const vectorField rHat(r/magr); - const scalarField axialVelocity = axialVelocity_->value(magr); - const scalarField radialVelocity = radialVelocity_->value(magr); - const scalarField tangentialVelocity = tangentialVelocity_->value(magr); + const scalarField axialVelocity(axialVelocity_->value(magr)); + const scalarField radialVelocity(radialVelocity_->value(magr)); + const scalarField tangentialVelocity(tangentialVelocity_->value(magr)); operator== (