Skip to content
Snippets Groups Projects
Commit 64178949 authored by Henry's avatar Henry
Browse files

Corrections for single-precision compilation

parent 3a0df36a
Branches
Tags
No related merge requests found
......@@ -213,7 +213,7 @@ tmp<scalarField> curvatureSeparation::calcCosAngle
volCosAngle.write();
}
return max(min(cosAngle, 1.0), -1.0);
return max(min(cosAngle, scalar(1.0)), scalar(-1.0));
}
......
......@@ -123,7 +123,7 @@ void standardPhaseChange::correctModel
const scalarField hInf(film.htcs().h());
const scalarField hFilm(film.htcw().h());
const vectorField dU(film.UPrimary() - film.Us());
const scalarField limMass(max(0.0, availableMass - deltaMin_*rho*magSf));
const scalarField limMass(max(scalar(0.0), availableMass - deltaMin_*rho*magSf));
forAll(dMass, cellI)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment