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

@ -3297,7 +3297,7 @@ void Foam::distributedTriSurfaceMesh::findNearest
// Work array - whether processor bb overlaps the bounding sphere.
boolList procBbOverlaps(Pstream::nProcs());
label nFound = 0;
// label nFound = 0;
forAll(nearestInfo, samplei)
{
@ -3305,10 +3305,10 @@ void Foam::distributedTriSurfaceMesh::findNearest
const nearestAndDist& ni = nearestInfo[samplei];
const pointIndexHit& info = ni.first();
if (info.hit())
{
nFound++;
}
// if (info.hit())
// {
// nFound++;
// }
scalar d2 =
(

View File

@ -170,14 +170,14 @@ bool Foam::patchDistMethods::exact::correct
);
// Take over hits
label nHits = 0;
// label nHits = 0;
forAll(info, celli)
{
if (info[celli].hit())
{
const point& cc = mesh_.cellCentres()[celli];
y[celli] = info[celli].point().dist(cc);
nHits++;
// ++nHits;
}
//else
//{