mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Correct for SP build
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@ Foam::TimeScaleModels::equilibrium::oneByTau
|
||||
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user