Bug fix: cyclic debug
This commit is contained in:
parent
33dc790f18
commit
51fc45400d
1 changed files with 48 additions and 42 deletions
|
@ -259,6 +259,8 @@ void Foam::cyclicPolyPatch::calcTransforms()
|
|||
|
||||
// Dump transformed first half
|
||||
if (debug)
|
||||
{
|
||||
if (reverseT_.size() > 0)
|
||||
{
|
||||
fileName fvPath(boundaryMesh().mesh().time().path()/"VTK");
|
||||
|
||||
|
@ -277,10 +279,12 @@ void Foam::cyclicPolyPatch::calcTransforms()
|
|||
);
|
||||
|
||||
fileName nm2(fvPath/name() + "_transform_half0_faces");
|
||||
Pout<< "cyclicPolyPatch::calcTransforms : Writing transform_half0"
|
||||
<< " faces to file " << nm2 << endl;
|
||||
Pout<< "cyclicPolyPatch::calcTransforms : Writing "
|
||||
<< "transform_half0 faces to file " << nm2 << endl;
|
||||
|
||||
transformHalf0.writeVTK(nm2, transformHalf0, transformPoints);
|
||||
}
|
||||
}
|
||||
|
||||
// Check for error in face matching
|
||||
if (maxMatchError > polyPatch::matchTol_)
|
||||
|
@ -354,31 +358,33 @@ void Foam::cyclicPolyPatch::calcTransforms()
|
|||
}
|
||||
else
|
||||
{
|
||||
maxDistance =
|
||||
Foam::max
|
||||
(
|
||||
maxDistance,
|
||||
mag
|
||||
(
|
||||
half0Ctrs[faceI]
|
||||
- half1Ctrs[faceI]
|
||||
)
|
||||
);
|
||||
// Disable checking for translational distance
|
||||
// HJ, 13/Jan/2011
|
||||
// maxDistance =
|
||||
// Foam::max
|
||||
// (
|
||||
// maxDistance,
|
||||
// mag
|
||||
// (
|
||||
// half0Ctrs[faceI]
|
||||
// - half1Ctrs[faceI]
|
||||
// )
|
||||
// );
|
||||
|
||||
maxRelDistance =
|
||||
Foam::max
|
||||
(
|
||||
maxRelDistance,
|
||||
mag
|
||||
(
|
||||
half0Ctrs[faceI]
|
||||
- half1Ctrs[faceI]
|
||||
)
|
||||
/(
|
||||
mag(half1Ctrs[faceI] - half0Ctrs[faceI])
|
||||
+ SMALL
|
||||
)
|
||||
);
|
||||
// maxRelDistance =
|
||||
// Foam::max
|
||||
// (
|
||||
// maxRelDistance,
|
||||
// mag
|
||||
// (
|
||||
// half0Ctrs[faceI]
|
||||
// - half1Ctrs[faceI]
|
||||
// )
|
||||
// /(
|
||||
// mag(half1Ctrs[faceI] - half0Ctrs[faceI])
|
||||
// + SMALL
|
||||
// )
|
||||
// );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue