1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-10 06:00:45 +01:00

Need to validate range about which exp^iQ is considered unity

This commit is contained in:
Michael Marshall 2019-04-26 16:00:35 +01:00
parent 2e220456d3
commit e223d0b99f

View File

@ -142,7 +142,8 @@ public:
iQ2 = iQ * iQ;
iQ3 = iQ * iQ2;
if(abs(real(trace(iQ2))) < 0.000000001) // Felix, please check this
Real tr = real(trace(iQ2));
if(tr > -0.0000001 && tr < 0.00000001 ) // Felix, please check this
e_iQ = unity;
else {
//We should check sgn(c0) here already and then apply eq (34) from 0311018