diff --git a/Core/RT/MatrixRTCoefficients_v3.cpp b/Core/RT/MatrixRTCoefficients_v3.cpp index 98919c7a34bab2d4e6b5f5ac7b4b30fa6cb76a8e..36f56c19ae96b64f7fff68a1cf6eb8ec44f94cd4 100644 --- a/Core/RT/MatrixRTCoefficients_v3.cpp +++ b/Core/RT/MatrixRTCoefficients_v3.cpp @@ -52,10 +52,7 @@ Eigen::Matrix2cd MatrixRTCoefficients_v3::TransformationMatrix(complex_t eigenva Q << (1. + m_b.z()), (I * m_b.y() - m_b.x()), (m_b.x() + I * m_b.y()), (m_b.z() + 1.); return Q * exp2 * Q.adjoint() / factor1; - } else if (m_b.mag() < eps && eigenvalue != 0.) - return exp2; - - else if (m_b.mag() < eps && eigenvalue == 0.) + } else if (m_b.mag() < eps) return exp2; throw std::runtime_error("Broken magnetic field vector");