From 0c80f2fa9a974b8f32e2301f9ac8d7fe0f3f6633 Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Wed, 30 May 2012 16:15:55 +0100 Subject: [PATCH] variableHeightFlowRateInletVelocity BC: corrected to compile SP --- .../variableHeightFlowRateInletVelocityFvPatchVectorField.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C index 98d98f07bab..d0911a49107 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/variableHeightFlowRateInletVelocity/variableHeightFlowRateInletVelocityFvPatchVectorField.C @@ -107,8 +107,8 @@ void Foam::variableHeightFlowRateInletVelocityFvPatchVectorField scalarField alphap = patch().lookupPatchField<volScalarField, scalar>("alpha1"); - alphap = max(alphap, 0.0); - alphap = min(alphap, 1.0); + alphap = max(alphap, scalar(0)); + alphap = min(alphap, scalar(1)); // a simpler way of doing this would be nice scalar avgU = -flowRate_/gSum(patch().magSf()*alphap); -- GitLab