diff --git a/Core/Multilayer/SpecularScalarStrategy.cpp b/Core/Multilayer/SpecularScalarStrategy.cpp index 674869d5e4fd5e50f3f4a23d982b0d4d17ff23c9..95f117d7440bcbb9b830b4105dc019e4a90976a2 100644 --- a/Core/Multilayer/SpecularScalarStrategy.cpp +++ b/Core/Multilayer/SpecularScalarStrategy.cpp @@ -113,10 +113,7 @@ void SpecularScalarStrategy::calculateUpFromLayer(std::vector<ScalarRTCoefficien auto dumpingFactor = complex_t(1, 0); for (size_t j = 1; j < N; ++j) { dumpingFactor = dumpingFactor * factors[j - 1]; - if (std::isinf(std::norm(dumpingFactor))) { - setZeroBelow(coeff, j - 1); - break; - } + coeff[j].t_r(0) = dumpingFactor; coeff[j].t_r(1) *= dumpingFactor; }