Commit cc780ca2 authored by Henry's avatar Henry
Browse files

Correct for SP build

parent 45b98392
......@@ -123,7 +123,7 @@ void Foam::AveragingMethods::Dual<Type>::tetGeometry
tetIs.tet(this->mesh_).barycentric(position, tetCoordinates_);
tetCoordinates_ = max(tetCoordinates_, 0.0);
tetCoordinates_ = max(tetCoordinates_, scalar(0));
}
......
......@@ -85,9 +85,9 @@ Foam::TimeScaleModels::equilibrium::oneByTau
16.0/sqrt(3.0*constant::mathematical::pi)
*0.25*(1.0 - e_*e_);
return
return
a
*alpha*sqrt(max(uSqr, 0.0))/max(r32, SMALL)
*alpha*sqrt(max(uSqr, scalar(0)))/max(r32, SMALL)
*alphaPacked_/max(alphaPacked_ - alpha, SMALL);
}
......
......@@ -3508,7 +3508,7 @@ void Foam::autoLayerDriver::addLayers
meshRefiner_.updateMesh(map, labelList(0));
// Update numbering of faceWantedThickness
meshRefinement::updateList(map().faceMap(), 0.0, faceWantedThickness);
meshRefinement::updateList(map().faceMap(), scalar(0), faceWantedThickness);
// Update numbering on baffles
forAll(baffles, i)
......
......@@ -91,10 +91,10 @@ void Foam::cyclicACMIPolyPatch::resetAMI
);
srcMask_ =
min(1.0 - tolerance_, max(tolerance_, AMI().srcWeightsSum()));
min(scalar(1) - tolerance_, max(tolerance_, AMI().srcWeightsSum()));
tgtMask_ =
min(1.0 - tolerance_, max(tolerance_, AMI().tgtWeightsSum()));
min(scalar(1) - tolerance_, max(tolerance_, AMI().tgtWeightsSum()));
forAll(Sf, faceI)
{
......
......@@ -121,9 +121,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
max
(
(do_ - pDist.internalField())/(do_ - di_),
0.0
scalar(0)
),
1.0
scalar(1)
);
// Convert the scale function to a cosine
......@@ -136,9 +136,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
- 0.5
*cos(scale_.internalField()
*Foam::constant::mathematical::pi),
0.0
scalar(0)
),
1.0
scalar(1)
);
scale_.correctBoundaryConditions();
......
Markdown is supported
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