rotatevector Subroutine

public subroutine rotatevector(rho2nsc, rho2ns, nrmax, lmpotd, theta, phi, theta_old, phi_old, nrmaxd)

Does the rotation from the old local to the new local spin frame for densities and charges where and are matricies in spin space

Arguments

Type IntentOptional 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