mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: polyMeshFilter: single precision build
This commit is contained in:
@ -123,7 +123,7 @@ void Foam::polyMeshFilter::checkMeshEdgesAndRelaxEdges
|
||||
}
|
||||
}
|
||||
|
||||
syncTools::syncEdgeList(mesh_, minEdgeLen_, minEqOp<scalar>(), 0.0);
|
||||
syncTools::syncEdgeList(mesh_, minEdgeLen_, minEqOp<scalar>(), scalar(0.0));
|
||||
|
||||
for (label smoothIter = 0; smoothIter < maxSmoothIters_; ++smoothIter)
|
||||
{
|
||||
@ -154,7 +154,13 @@ void Foam::polyMeshFilter::checkMeshEdgesAndRelaxEdges
|
||||
);
|
||||
}
|
||||
|
||||
syncTools::syncEdgeList(mesh_, minEdgeLen_, minEqOp<scalar>(), 0.0);
|
||||
syncTools::syncEdgeList
|
||||
(
|
||||
mesh_,
|
||||
minEdgeLen_,
|
||||
minEqOp<scalar>(),
|
||||
scalar(0.0)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -343,7 +349,7 @@ void Foam::polyMeshFilter::mapOldMeshEdgeFieldToNewMesh
|
||||
newMesh,
|
||||
newMeshMinEdgeLen,
|
||||
maxEqOp<scalar>(),
|
||||
0.0
|
||||
scalar(0.0)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@ void Foam::inclinedFilmNusseltHeightFvPatchScalarField::updateCoeffs()
|
||||
const volScalarField& rho = film.rho();
|
||||
const scalarField rhop(rho.boundaryField()[patchI].patchInternalField());
|
||||
|
||||
const scalarField Re(max(G, 0.0)/mup);
|
||||
const scalarField Re(max(G, scalar(0.0))/mup);
|
||||
|
||||
// TODO: currently re-evaluating the entire gTan field to return this patch
|
||||
const scalarField gTan(film.gTan()().boundaryField()[patchI] & n);
|
||||
|
||||
@ -158,7 +158,7 @@ void Foam::inclinedFilmNusseltInletVelocityFvPatchVectorField::updateCoeffs()
|
||||
const volScalarField& rho = film.rho();
|
||||
const scalarField rhop(rho.boundaryField()[patchI].patchInternalField());
|
||||
|
||||
const scalarField Re(max(G, 0.0)/mup);
|
||||
const scalarField Re(max(G, scalar(0.0))/mup);
|
||||
|
||||
// TODO: currently re-evaluating the entire gTan field to return this patch
|
||||
const scalarField gTan(film.gTan()().boundaryField()[patchI] & n);
|
||||
|
||||
@ -407,7 +407,8 @@ void v2f::correct()
|
||||
1.0/T*((C1_ - N)*v2_ - 2.0/3.0*k_*(C1_ - 1.0))
|
||||
);
|
||||
|
||||
tmp<volScalarField> Ceps1 = 1.4*(1.0 + 0.05*min(sqrt(k_/v2_), 100.0));
|
||||
tmp<volScalarField> Ceps1 =
|
||||
1.4*(1.0 + 0.05*min(sqrt(k_/v2_), scalar(100.0)));
|
||||
|
||||
// Update epsilon (and possibly G) at the wall
|
||||
epsilon_.boundaryField().updateCoeffs();
|
||||
|
||||
@ -374,7 +374,8 @@ void v2f::correct()
|
||||
);
|
||||
|
||||
|
||||
tmp<volScalarField> Ceps1 = 1.4*(1.0 + 0.05*min(sqrt(k_/v2_), 100.0));
|
||||
tmp<volScalarField> Ceps1 =
|
||||
1.4*(1.0 + 0.05*min(sqrt(k_/v2_), scalar(100.0)));
|
||||
|
||||
// Update epsilon (and possibly G) at the wall
|
||||
epsilon_.boundaryField().updateCoeffs();
|
||||
|
||||
Reference in New Issue
Block a user