also using isNaN function
This commit is contained in:
parent
25665b1d80
commit
7e0b79a33c
|
@ -1688,6 +1688,8 @@ pure function lattice_symmetrize33(struct,T33)
|
||||||
!> @brief figures whether unit quat falls into stereographic standard triangle
|
!> @brief figures whether unit quat falls into stereographic standard triangle
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
logical pure function lattice_qInSST(Q, struct)
|
logical pure function lattice_qInSST(Q, struct)
|
||||||
|
use prec, only: &
|
||||||
|
prec_isNaN
|
||||||
use math, only: &
|
use math, only: &
|
||||||
math_qToRodrig
|
math_qToRodrig
|
||||||
|
|
||||||
|
@ -1697,7 +1699,7 @@ logical pure function lattice_qInSST(Q, struct)
|
||||||
real(pReal), dimension(3) :: Rodrig ! Rodrigues vector of Q
|
real(pReal), dimension(3) :: Rodrig ! Rodrigues vector of Q
|
||||||
|
|
||||||
Rodrig = math_qToRodrig(Q)
|
Rodrig = math_qToRodrig(Q)
|
||||||
if (any(Rodrig/=Rodrig)) then
|
if (any(prec_isNaN(Rodrig))) then
|
||||||
lattice_qInSST = .false.
|
lattice_qInSST = .false.
|
||||||
else
|
else
|
||||||
select case (struct)
|
select case (struct)
|
||||||
|
|
Loading…
Reference in New Issue