Skip to content

Commit ed89e9d

Browse files
committed
MP bug fix and additional interpolation warning details
1 parent 69e812d commit ed89e9d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Common/src/interface_interpolation/CMixingPlane.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,14 @@ void CMixingPlane::SetTransferCoeff(const CConfig* const* config) {
146146
// Calculate interpolation coefficient
147147
coeff = (spanValuesTarget[iSpanTarget] - spanValuesDonor[kSpan]) /
148148
(spanValuesDonor[kSpan + 1] - spanValuesDonor[kSpan]);
149-
if (((coeff < 0) || (coeff > 1)) && (rank == MASTER_NODE)) cout << "Warning! Target spans exist outside the bounds of donor spans!" << endl;
149+
if (((coeff < 0) || (coeff > 1)) && (rank == MASTER_NODE)){
150+
cout << "Warning! Target spans exist outside the bounds of donor spans!" << endl;
151+
cout << "Target span " << iSpanTarget << " <- " << kSpan << " coeff = " << coeff << endl;
152+
if (iSpanTarget < nSpanTarget/2) cout << "This is likely an issue at the hub." << endl;
153+
if (iSpanTarget > nSpanTarget/2) cout << "This is likely an issue at the shroud." << endl;
154+
cout << "Setting coeff = 0.0" << endl;
155+
coeff = 0.0;
156+
}
150157
targetSpan.donorSpan = kSpan;
151158
targetSpan.coefficient = coeff;
152159
break;

0 commit comments

Comments
 (0)