diff --git a/flowRateTiltedInletVelocityFvPatchVectorField.C b/flowRateTiltedInletVelocityFvPatchVectorField.C index 3ecb5e8..6f52306 100644 --- a/flowRateTiltedInletVelocityFvPatchVectorField.C +++ b/flowRateTiltedInletVelocityFvPatchVectorField.C @@ -173,7 +173,7 @@ void Foam::flowRateTiltedInletVelocityFvPatchVectorField::updateCoeffs() // a simpler way of doing this would be nice const scalar avgU = -flowRate_->value(t)/gSum(patch().magSf()); - tmp n = patch().nf(); + vectorField n(patch().nf()); scalarField B(Foam::asin(n & axis_));