mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: fix library linkage (#2784), silence some unused variable warnings
This commit is contained in:
@ -42,7 +42,7 @@ for (label i=0; i<nPoints; i++)
|
||||
labelList i1tab(nPoints), i3tab(nPoints), i8tab(nPoints), idreg(nPoints),
|
||||
f(nPoints), bcl(nPoints), bcf(nPoints), bcb(nPoints);
|
||||
|
||||
label nBfaces = 0;
|
||||
// label nBfaces = 0;
|
||||
|
||||
for (label i=0; i<nPoints; i++)
|
||||
{
|
||||
@ -65,9 +65,9 @@ for (label i=0; i<nPoints; i++)
|
||||
bcf[i] = label(fbcf);
|
||||
bcb[i] = label(fbcb);
|
||||
|
||||
if (bcl[i] > 0 && bcl[i] != 4) nBfaces++;
|
||||
if (bcf[i] > 0 && bcf[i] != 4) nBfaces++;
|
||||
if (bcb[i] > 0 && bcb[i] != 4) nBfaces++;
|
||||
// if (bcl[i] > 0 && bcl[i] != 4) ++nBfaces;
|
||||
// if (bcf[i] > 0 && bcf[i] != 4) ++nBfaces;
|
||||
// if (bcb[i] > 0 && bcb[i] != 4) ++nBfaces;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -170,23 +170,23 @@ template<class Triangulation>
|
||||
void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
{
|
||||
label nInternal = 0;
|
||||
label nInternalRef = 0;
|
||||
//label nInternalRef = 0;
|
||||
label nUnassigned = 0;
|
||||
label nUnassignedRef = 0;
|
||||
//label nUnassignedRef = 0;
|
||||
label nInternalNearBoundary = 0;
|
||||
label nInternalNearBoundaryRef = 0;
|
||||
//label nInternalNearBoundaryRef = 0;
|
||||
label nInternalSurface = 0;
|
||||
label nInternalSurfaceRef = 0;
|
||||
//label nInternalSurfaceRef = 0;
|
||||
label nInternalFeatureEdge = 0;
|
||||
label nInternalFeatureEdgeRef = 0;
|
||||
//label nInternalFeatureEdgeRef = 0;
|
||||
label nInternalFeaturePoint = 0;
|
||||
label nInternalFeaturePointRef = 0;
|
||||
//label nInternalFeaturePointRef = 0;
|
||||
label nExternalSurface = 0;
|
||||
label nExternalSurfaceRef = 0;
|
||||
//label nExternalSurfaceRef = 0;
|
||||
label nExternalFeatureEdge = 0;
|
||||
label nExternalFeatureEdgeRef = 0;
|
||||
//label nExternalFeatureEdgeRef = 0;
|
||||
label nExternalFeaturePoint = 0;
|
||||
label nExternalFeaturePointRef = 0;
|
||||
//label nExternalFeaturePointRef = 0;
|
||||
label nFar = 0;
|
||||
label nReferred = 0;
|
||||
|
||||
@ -202,7 +202,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalRef++;
|
||||
//++nInternalRef;
|
||||
}
|
||||
|
||||
nInternal++;
|
||||
@ -212,7 +212,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nUnassignedRef++;
|
||||
//++nUnassignedRef;
|
||||
}
|
||||
|
||||
nUnassigned++;
|
||||
@ -222,7 +222,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalNearBoundaryRef++;
|
||||
//++nInternalNearBoundaryRef;
|
||||
}
|
||||
|
||||
nInternalNearBoundary++;
|
||||
@ -232,7 +232,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalSurfaceRef++;
|
||||
//++nInternalSurfaceRef;
|
||||
}
|
||||
|
||||
nInternalSurface++;
|
||||
@ -242,7 +242,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalFeatureEdgeRef++;
|
||||
//++nInternalFeatureEdgeRef;
|
||||
}
|
||||
|
||||
nInternalFeatureEdge++;
|
||||
@ -252,7 +252,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nInternalFeaturePointRef++;
|
||||
//++nInternalFeaturePointRef;
|
||||
}
|
||||
|
||||
nInternalFeaturePoint++;
|
||||
@ -262,7 +262,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nExternalSurfaceRef++;
|
||||
//++nExternalSurfaceRef;
|
||||
}
|
||||
|
||||
nExternalSurface++;
|
||||
@ -272,7 +272,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nExternalFeatureEdgeRef++;
|
||||
//++nExternalFeatureEdgeRef;
|
||||
}
|
||||
|
||||
nExternalFeatureEdge++;
|
||||
@ -282,7 +282,7 @@ void Foam::DelaunayMesh<Triangulation>::printVertexInfo(Ostream& os) const
|
||||
if (vit->referred())
|
||||
{
|
||||
nReferred++;
|
||||
nExternalFeaturePointRef++;
|
||||
//++nExternalFeaturePointRef;
|
||||
}
|
||||
|
||||
nExternalFeaturePoint++;
|
||||
|
||||
@ -853,7 +853,7 @@ Foam::DistributedDelaunayMesh<Triangulation>::rangeInsertReferredWithInfo
|
||||
typename Triangulation::Locate_type lt;
|
||||
int li, lj;
|
||||
|
||||
label nNotInserted = 0;
|
||||
//label nNotInserted = 0;
|
||||
|
||||
labelPairHashSet uninserted
|
||||
(
|
||||
@ -979,7 +979,7 @@ Foam::DistributedDelaunayMesh<Triangulation>::rangeInsertReferredWithInfo
|
||||
else
|
||||
{
|
||||
uninserted.insert(labelPair(vert.procIndex(), vert.index()));
|
||||
nNotInserted++;
|
||||
//++nNotInserted;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ Foam::scalar Foam::cellShapeControl::cellSize(const point& pt) const
|
||||
}
|
||||
else if (shapeControlMesh_.is_infinite(ch))
|
||||
{
|
||||
// if (nFarPoints != 0)
|
||||
// if (nFarPoints)
|
||||
// {
|
||||
// for (label pI = 0; pI < 4; ++pI)
|
||||
// {
|
||||
@ -136,11 +136,11 @@ Foam::scalar Foam::cellShapeControl::cellSize(const point& pt) const
|
||||
{
|
||||
if (ch->vertex(pI)->farPoint())
|
||||
{
|
||||
nFarPoints++;
|
||||
++nFarPoints;
|
||||
}
|
||||
}
|
||||
|
||||
if (nFarPoints != 0)
|
||||
if (nFarPoints)
|
||||
{
|
||||
for (label pI = 0; pI < 4; ++pI)
|
||||
{
|
||||
@ -179,16 +179,16 @@ Foam::tensor Foam::cellShapeControl::cellAlignment(const point& pt) const
|
||||
}
|
||||
else
|
||||
{
|
||||
label nFarPoints = 0;
|
||||
for (label pI = 0; pI < 4; ++pI)
|
||||
{
|
||||
if (ch->vertex(pI)->farPoint())
|
||||
{
|
||||
nFarPoints++;
|
||||
}
|
||||
}
|
||||
// label nFarPoints = 0;
|
||||
// for (label pI = 0; pI < 4; ++pI)
|
||||
// {
|
||||
// if (ch->vertex(pI)->farPoint())
|
||||
// {
|
||||
// ++nFarPoints;
|
||||
// }
|
||||
// }
|
||||
|
||||
// if (nFarPoints != 0)
|
||||
// if (nFarPoints)
|
||||
// {
|
||||
// for (label pI = 0; pI < 4; ++pI)
|
||||
// {
|
||||
@ -259,11 +259,11 @@ void Foam::cellShapeControl::cellSizeAndAlignment
|
||||
{
|
||||
if (ch->vertex(pI)->farPoint())
|
||||
{
|
||||
nFarPoints++;
|
||||
++nFarPoints;
|
||||
}
|
||||
}
|
||||
|
||||
if (nFarPoints != 0)
|
||||
if (nFarPoints)
|
||||
{
|
||||
for (label pI = 0; pI < 4; ++pI)
|
||||
{
|
||||
|
||||
@ -82,11 +82,11 @@ bool Foam::controlMeshRefinement::detectEdge
|
||||
|
||||
Foam::point midPoint = (a + b)/2.0;
|
||||
|
||||
label nIterations = 0;
|
||||
//label nIterations = 0;
|
||||
|
||||
while (true)
|
||||
{
|
||||
nIterations++;
|
||||
//++nIterations;
|
||||
|
||||
if
|
||||
(
|
||||
|
||||
@ -74,7 +74,7 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
return false;
|
||||
}
|
||||
|
||||
label nVert = foamyHexMesh_.number_of_vertices();
|
||||
//label nVert = foamyHexMesh_.number_of_vertices();
|
||||
|
||||
const label initialNumOfPoints = pts.size();
|
||||
|
||||
@ -267,7 +267,7 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
|
||||
// Remove points that have just been added before returning
|
||||
pts.pop_back(2);
|
||||
nVert -= 2;
|
||||
//nVert -= 2;
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -503,7 +503,7 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
return false;
|
||||
}
|
||||
|
||||
label nVert = foamyHexMesh_.number_of_vertices();
|
||||
//label nVert = foamyHexMesh_.number_of_vertices();
|
||||
|
||||
const label initialNumOfPoints = pts.size();
|
||||
|
||||
@ -700,7 +700,7 @@ bool Foam::featurePointConformer::createSpecialisedFeaturePoint
|
||||
|
||||
// Remove points that have just been added before returning
|
||||
pts.pop_back(2);
|
||||
nVert -= 2;
|
||||
//nVert -= 2;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -81,7 +81,7 @@ if (doFiniteArea)
|
||||
|
||||
labelList patchIds
|
||||
(
|
||||
areaMesh.mesh().boundaryMesh().patchID(areaMesh.faceLabels())
|
||||
pbm.patchID(areaMesh.faceLabels())
|
||||
);
|
||||
|
||||
writer.writeCellData("patchID", patchIds);
|
||||
|
||||
@ -1408,7 +1408,7 @@ autoPtr<extendedFeatureEdgeMesh> createEdgeMesh
|
||||
label nIntOrExt = 0;
|
||||
label nFlat = 0;
|
||||
label nOpen = 0;
|
||||
label nMultiple = 0;
|
||||
// label nMultiple = 0;
|
||||
|
||||
forAll(edgeNormals, eI)
|
||||
{
|
||||
@ -1432,10 +1432,10 @@ autoPtr<extendedFeatureEdgeMesh> createEdgeMesh
|
||||
nIntOrExt++;
|
||||
}
|
||||
}
|
||||
else if (nEdNorms > 2)
|
||||
{
|
||||
nMultiple++;
|
||||
}
|
||||
// else if (nEdNorms > 2)
|
||||
// {
|
||||
// ++nMultiple;
|
||||
// }
|
||||
}
|
||||
|
||||
if (action == booleanSurface::UNION)
|
||||
|
||||
@ -775,7 +775,7 @@ label collapseBase
|
||||
{
|
||||
label nTotalSplit = 0;
|
||||
|
||||
label iter = 0;
|
||||
// label iter = 0;
|
||||
|
||||
while (true)
|
||||
{
|
||||
@ -980,7 +980,7 @@ label collapseBase
|
||||
// surf.write(fName);
|
||||
//}
|
||||
|
||||
iter++;
|
||||
// ++iter;
|
||||
}
|
||||
|
||||
// Remove any unused vertices
|
||||
|
||||
Reference in New Issue
Block a user