mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: namespace qualify min/max functions (#3348)
FIX: missing patch face index writeFields (#3347)
This commit is contained in:
@ -276,7 +276,7 @@ label detectIntersectionPoints
|
||||
|
||||
// 1. Extrusion offset vectors intersecting new surface location
|
||||
{
|
||||
scalar tol = max(tolerance, 10*s.tolerance());
|
||||
scalar tol = Foam::max(tolerance, 10*s.tolerance());
|
||||
|
||||
// Collect all the edge vectors. Slightly shorten the edges to prevent
|
||||
// finding lots of intersections. The fast triangle intersection routine
|
||||
@ -296,7 +296,7 @@ label detectIntersectionPoints
|
||||
&& !localFaces[hits[pointI].index()].found(pointI)
|
||||
)
|
||||
{
|
||||
scale[pointI] = max(0.0, scale[pointI]-0.2);
|
||||
scale[pointI] = Foam::max(0.0, scale[pointI]-0.2);
|
||||
|
||||
isPointOnHitEdge.set(pointI);
|
||||
nHits++;
|
||||
@ -330,7 +330,7 @@ label detectIntersectionPoints
|
||||
<< pt
|
||||
<< endl;
|
||||
|
||||
scale[e[0]] = max(0.0, scale[e[0]]-0.2);
|
||||
scale[e[0]] = Foam::max(0.0, scale[e[0]]-0.2);
|
||||
nHits++;
|
||||
}
|
||||
if (isPointOnHitEdge.set(e[1]))
|
||||
@ -342,7 +342,7 @@ label detectIntersectionPoints
|
||||
<< pt
|
||||
<< endl;
|
||||
|
||||
scale[e[1]] = max(0.0, scale[e[1]]-0.2);
|
||||
scale[e[1]] = Foam::max(0.0, scale[e[1]]-0.2);
|
||||
nHits++;
|
||||
}
|
||||
}
|
||||
@ -418,7 +418,7 @@ void minSmooth
|
||||
const edge& e = edges[edgeI];
|
||||
scalar w = mag(points[mp[e[0]]]-points[mp[e[1]]]);
|
||||
|
||||
edgeWeights[edgeI] = 1.0/(max(w, SMALL));
|
||||
edgeWeights[edgeI] = 1.0/(Foam::max(w, SMALL));
|
||||
}
|
||||
|
||||
tmp<scalarField> tavgFld = avg(s, fld, edgeWeights);
|
||||
@ -429,7 +429,7 @@ void minSmooth
|
||||
{
|
||||
if (isAffectedPoint.test(pointI))
|
||||
{
|
||||
newFld[pointI] = min
|
||||
newFld[pointI] = Foam::min
|
||||
(
|
||||
fld[pointI],
|
||||
0.5*fld[pointI] + 0.5*avgFld[pointI]
|
||||
|
||||
Reference in New Issue
Block a user