Wrapper to setup the rotation matrices to transform from the local to the global frame of references
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=25), | public, | parameter | :: | spinmode | = | 'kkr' |
R o t a t e s
a
m a t r i x
i n
t h e
l o c a l
f r a m e
p o i n t i n g
i n
t h e
d i r e c t i o n
o f
\ ( \ p h i \ )
a n d
\ ( \ t h e t a \ )
t o
t h e
g l o b a l
f r a m e
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp), | intent(inout), | dimension (2*lmsize, 2*lmsize) | :: | mat | ||
real(kind=dp), | intent(in) | :: | theta | |||
real(kind=dp), | intent(in) | :: | phi | |||
integer, | intent(in) | :: | lmsize | |||
integer, | intent(in) | :: | mode |
D o e s
t h e
r o t a t i o n
f r o m
t h e
o l d
l o c a l
t o
t h e
n e w
l o c a l
s p i n
f r a m e
r e f e r e n c e
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp) | :: | rho2nsc(nrmaxd,lmpotd,4) | ||||
real(kind=dp) | :: | rho2ns(nrmaxd,lmpotd,4) | ||||
integer | :: | nrmax | ||||
integer | :: | lmpotd | ||||
real(kind=dp) | :: | theta | ||||
real(kind=dp) | :: | phi | ||||
real(kind=dp) | :: | theta_old | ||||
real(kind=dp) | :: | phi_old | ||||
integer | :: | nrmaxd |
C r e a t e
t h e
r o t a t i o n
m a t r i x
\ ( W \ ) :
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | theta | |||
real(kind=dp), | intent(in) | :: | phi | |||
real(kind=dp), | intent(in) | :: | theta_old | |||
real(kind=dp), | intent(in) | :: | phi_old | |||
integer, | intent(in) | :: | lmsize | |||
complex(kind=dp), | intent(out) | :: | wmat1(2*lmsize,2*lmsize) | |||
complex(kind=dp), | intent(out) | :: | wmat2(2*lmsize,2*lmsize) |
C r e a t e
t h e
r o t a t i o n
m a t r i x
\ ( U \ )
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | theta | |||
real(kind=dp), | intent(in) | :: | phi | |||
integer, | intent(in) | :: | lmsize | |||
complex(kind=dp), | intent(out) | :: | umat(2*lmsize,2*lmsize) | |||
complex(kind=dp), | intent(out) | :: | udeggamat(2*lmsize,2*lmsize) |