diff --git a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C index 29ed517758..dc9d5d835b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/freestreamVelocity/freestreamVelocityFvPatchVectorField.C @@ -106,7 +106,7 @@ void Foam::freestreamVelocityFvPatchVectorField::updateCoeffs() return; } - const Field Up = patchInternalField(); + const Field Up(patchInternalField()); const Field magUp(mag(Up)); const Field nf(patch().nf());