BUG: AMI: Fixed target face used as index to source patch. Also undo commit b816fac, which was an incorrect fix for the same bug.

This commit is contained in:
william
2014-09-15 15:09:55 +01:00
committed by Andrew Heather
parent e46a6eb569
commit 96b7fa8f62
2 changed files with 3 additions and 3 deletions

View File

@ -1494,7 +1494,7 @@ const
forAll(addr, i)
{
label srcFaceI = addr[i];
const face& f = srcPatch[tgtFaceI];
const face& f = srcPatch[srcFaceI];
pointHit ray = f.ray(tgtPoint, n, srcPoints);
@ -1510,7 +1510,7 @@ const
forAll(addr, i)
{
label srcFaceI = addr[i];
const face& f = srcPatch[tgtFaceI];
const face& f = srcPatch[srcFaceI];
vector nFace(-srcPatch.faceNormals()[srcFaceI]);
nFace += tgtPatch.faceNormals()[tgtFaceI];

View File

@ -993,8 +993,8 @@ Foam::label Foam::cyclicAMIPolyPatch::pointFace
{
return neighbPatch().AMI().srcPointFace
(
*this,
neighbPatch(),
*this,
n,
faceI,
p