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:
@ -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 =
|
||||
(
|
||||
|
||||
@ -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
|
||||
//{
|
||||
|
||||
Reference in New Issue
Block a user