ENH: faceAreaWeightAMI - report centre of problenm face. Fixes #2730

This commit is contained in:
Andrew Heather 2023-05-30 18:00:21 +01:00
parent d94744e9f7
commit 113fe48d0e

View File

@ -269,7 +269,8 @@ bool Foam::faceAreaWeightAMI::setNextFaces
return false;
}
const labelList& srcNbrFaces = this->srcPatch().faceFaces()[srcFacei];
const auto& srcPatch = this->srcPatch();
const labelList& srcNbrFaces = srcPatch.faceFaces()[srcFacei];
// Initialise tgtFacei
tgtFacei = -1;
@ -360,6 +361,7 @@ bool Foam::faceAreaWeightAMI::setNextFaces
{
FatalErrorInFunction
<< "Unable to set target face for source face " << srcFacei
<< " with centre: " << srcPatch.faceCentres()[srcFacei]
<< abort(FatalError);
}