Something went wrong while setting issue due date.
faceAreaWeightAMI more verbose error
Functionality to add/problem to solve
If the faceAreaWeightAMI class cannot find a target, it'll print the source face ID in the error which isn't that helpful.
Target audience
AMI users
Proposal
The current code in faceAreaWeightAMI.C at line 363
FatalErrorInFunction
<< "Unable to set target face for source face " << srcFacei
<< abort(FatalError);
could be changed to:
FatalErrorInFunction
<< "Unable to set target face for source face " << srcFacei
<< " with centre: " << srcPatch0().faceCentres()[srcFacei] << abort(FatalError);
And instead of an error for example:
Unable to set target face for source face 84468
the user can find the problematic area immediately with the following tiny extra info:
Unable to set target face for source face 84468 with centre: (0.138558 0.724811 1.9799)