COMP: fix library linkage (#2784), silence some unused variable warnings

This commit is contained in:
Mark Olesen
2023-05-18 18:53:40 +02:00
parent a5d9ad3a5c
commit 87cb811db2
31 changed files with 139 additions and 135 deletions

View File

@ -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;
}

View File

@ -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++;

View File

@ -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;
}
}

View File

@ -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)
{

View File

@ -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
(

View File

@ -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;
}

View File

@ -81,7 +81,7 @@ if (doFiniteArea)
labelList patchIds
(
areaMesh.mesh().boundaryMesh().patchID(areaMesh.faceLabels())
pbm.patchID(areaMesh.faceLabels())
);
writer.writeCellData("patchID", patchIds);

View File

@ -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)

View File

@ -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