Clean-up
This commit is contained in:
parent
fd95610120
commit
7ba2ddce9f
7 changed files with 24 additions and 21 deletions
|
@ -90,6 +90,7 @@ bool Foam::matchPoints
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
label faceI = pts1MagSqr.indices()[j];
|
label faceI = pts1MagSqr.indices()[j];
|
||||||
|
|
||||||
// Compare actual vectors
|
// Compare actual vectors
|
||||||
scalar distSqr = magSqr(pts0[face0I] - pts1[faceI]);
|
scalar distSqr = magSqr(pts0[face0I] - pts1[faceI]);
|
||||||
|
|
||||||
|
|
|
@ -506,8 +506,10 @@ Foam::polyMesh::polyMesh
|
||||||
|
|
||||||
if (!found)
|
if (!found)
|
||||||
{
|
{
|
||||||
FatalErrorIn("polyMesh::polyMesh(... construct from shapes...)")
|
FatalErrorIn
|
||||||
<< "face " << faceI << " of patch " << patchI
|
(
|
||||||
|
"polyMesh::polyMesh(... construct from shapes...)"
|
||||||
|
) << "face " << faceI << " of patch " << patchI
|
||||||
<< " does not seem to belong to cell " << cellInside
|
<< " does not seem to belong to cell " << cellInside
|
||||||
<< " which, according to the addressing, "
|
<< " which, according to the addressing, "
|
||||||
<< "should be next to it."
|
<< "should be next to it."
|
||||||
|
|
|
@ -136,7 +136,7 @@ bool cohesivePolyPatch::order
|
||||||
}
|
}
|
||||||
|
|
||||||
label oldFacesStartIndex = -1;
|
label oldFacesStartIndex = -1;
|
||||||
for(label i=0; i<topoFaceMap.size(); i=i+2)
|
for (label i = 0; i < topoFaceMap.size(); i += 2)
|
||||||
{
|
{
|
||||||
if (topoFaceMap[i + 1] - topoFaceMap[i] == 1)
|
if (topoFaceMap[i + 1] - topoFaceMap[i] == 1)
|
||||||
{
|
{
|
||||||
|
@ -212,7 +212,7 @@ bool cohesivePolyPatch::order
|
||||||
(
|
(
|
||||||
label i = 0;
|
label i = 0;
|
||||||
i < topoFaceMap.size();
|
i < topoFaceMap.size();
|
||||||
i=i+2
|
i += 2
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
half0ToPatch[n0Faces++] = i;
|
half0ToPatch[n0Faces++] = i;
|
||||||
|
|
|
@ -256,6 +256,7 @@ Foam::scalarField Foam::polyPatch::calcFaceTol
|
||||||
|
|
||||||
tols[faceI] = matchTol_*maxLen;
|
tols[faceI] = matchTol_*maxLen;
|
||||||
}
|
}
|
||||||
|
|
||||||
return tols;
|
return tols;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -751,7 +751,6 @@ bool Foam::primitiveMesh::checkFaceSkewness
|
||||||
{
|
{
|
||||||
Info<< " ***Max skewness = " << maxSkew
|
Info<< " ***Max skewness = " << maxSkew
|
||||||
<< ", " << nWarnSkew << " highly skew faces detected"
|
<< ", " << nWarnSkew << " highly skew faces detected"
|
||||||
<< " which may impair the quality of the results"
|
|
||||||
<< " Threshold = " << skewThreshold_
|
<< " Threshold = " << skewThreshold_
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue