New BCs: Updated for single-precision compilation

This commit is contained in:
Henry Weller
2017-07-17 16:54:48 +01:00
parent 40ddc72045
commit 01fe45deef
3 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateValues
Up -= nUp*n;
// Remove any reverse flow
nUp = min(nUp, 0.0);
nUp = min(nUp, scalar(0));
const scalar flowRate = flowRate_->value(t);
const scalar estimatedFlowRate = -gSum(rho*(this->patch().magSf()*nUp));

View File

@ -160,7 +160,7 @@ void Foam::flowRateOutletVelocityFvPatchVectorField::updateValues
Up -= nUp*n;
// Remove any reverse flow
nUp = max(nUp, 0.0);
nUp = max(nUp, scalar(0));
const scalar flowRate = flowRate_->value(t);
const scalar estimatedFlowRate = gSum(rho*(this->patch().magSf()*nUp));

View File

@ -148,7 +148,7 @@ void Foam::matchedFlowRateOutletVelocityFvPatchVectorField::updateValues
Up -= nUp*n;
// Remove any reverse flow
nUp = max(nUp, 0.0);
nUp = max(nUp, scalar(0));
// Lookup non-const access to velocity field
volVectorField& U