Skip to content
Snippets Groups Projects
Commit 46273d22 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Added comment

parent 15263588
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,7 @@ bool calculateUpFromLayer(SpecularMatrix::MultiLayerCoeff_t& coeff, const MultiL
(lambda_rough-lambda_below)*coeff[i+1].t_r(0) +
(lambda_rough+lambda_below)*coeff[i+1].t_r(1) )/2.0/lambda *
std::exp( ikd*lambda);
// If T overflowed, return false, so the calculation can restart from a layer higher
if (std::isinf(std::abs(coeff[i].getScalarT()))) {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment