File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Common/src/interface_interpolation Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments