BUG: Corrected nbr address in rotorDiskSource

This commit is contained in:
andy
2013-02-27 11:16:29 +00:00
parent fe20510296
commit 8f4683c8f3

View File

@ -203,7 +203,7 @@ void Foam::fv::rotorDiskSource::setFaceArea(vector& axis, const bool correct)
{
const label faceI = pp.start() + j;
const label own = cellAddr[mesh_.faceOwner()[faceI]];
const bool nbr = nbrFaceCellAddr[faceI - nInternalFaces];
const label nbr = nbrFaceCellAddr[faceI - nInternalFaces];
const vector nf = Sfp[j]/magSfp[j];
if ((own != -1) && (nbr == -1) && ((nf & axis) > tol))