mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pointToPointInterpolation: enhanced debug printing
This commit is contained in:
@ -210,37 +210,45 @@ void Foam::pointToPointPlanarInterpolation::calcWeights
|
|||||||
nearestVertexWeight_
|
nearestVertexWeight_
|
||||||
);
|
);
|
||||||
|
|
||||||
//if (debug)
|
if (debug)
|
||||||
//{
|
{
|
||||||
// forAll(sourcePoints, i)
|
forAll(sourcePoints, i)
|
||||||
// {
|
{
|
||||||
// Pout<< "source:" << i << " at:" << sourcePoints[i]
|
Pout<< "source:" << i << " at:" << sourcePoints[i]
|
||||||
// << " 2d:" << localVertices[i]
|
<< " 2d:" << localVertices[i]
|
||||||
// << endl;
|
<< endl;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
//
|
|
||||||
// forAll(destPoints, i)
|
forAll(destPoints, i)
|
||||||
// {
|
{
|
||||||
// label v0 = nearestVertex_[i][0];
|
label v0 = nearestVertex_[i][0];
|
||||||
// label v1 = nearestVertex_[i][1];
|
label v1 = nearestVertex_[i][1];
|
||||||
// label v2 = nearestVertex_[i][2];
|
label v2 = nearestVertex_[i][2];
|
||||||
//
|
|
||||||
// Pout<< "For location " << destPoints[i]
|
Pout<< "For location " << destPoints[i]
|
||||||
// << " 2d:" << localFaceCentres[i]
|
<< " 2d:" << localFaceCentres[i]
|
||||||
// << " sampling vertices" << nl
|
<< " sampling vertices" << nl
|
||||||
// << " " << v0
|
<< " " << v0
|
||||||
// << " at:" << sourcePoints[v0]
|
<< " at:" << sourcePoints[v0]
|
||||||
// << " weight:" << nearestVertexWeight_[i][0] << nl
|
<< " weight:" << nearestVertexWeight_[i][0] << nl;
|
||||||
// << " " << v1
|
|
||||||
// << " at:" << sourcePoints[v1]
|
if (v1 != -1)
|
||||||
// << " weight:" << nearestVertexWeight_[i][1] << nl
|
{
|
||||||
// << " " << v2
|
Pout<< " " << v1
|
||||||
// << " at:" << sourcePoints[v2]
|
<< " at:" << sourcePoints[v1]
|
||||||
// << " weight:" << nearestVertexWeight_[i][2] << nl
|
<< " weight:" << nearestVertexWeight_[i][1] << nl;
|
||||||
// << endl;
|
}
|
||||||
// }
|
if (v2 != -1)
|
||||||
//}
|
{
|
||||||
|
Pout<< " " << v2
|
||||||
|
<< " at:" << sourcePoints[v2]
|
||||||
|
<< " weight:" << nearestVertexWeight_[i][2] << nl;
|
||||||
|
}
|
||||||
|
|
||||||
|
Pout<< endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user