COMP: finiteVolume: single precision build

This commit is contained in:
mattijs
2017-10-25 15:17:33 +01:00
parent 27cd94e954
commit f45832b537
2 changed files with 2 additions and 2 deletions

View File

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

View File

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