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:
parent
b9f373691d
commit
55142ea9db
2 changed files with 3 additions and 3 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -993,8 +993,8 @@ Foam::label Foam::cyclicAMIPolyPatch::pointFace
|
|||
{
|
||||
return neighbPatch().AMI().srcPointFace
|
||||
(
|
||||
*this,
|
||||
neighbPatch(),
|
||||
*this,
|
||||
n,
|
||||
faceI,
|
||||
p
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue