rotatematrix Subroutine

public subroutine rotatematrix(mat, theta, phi, lmsize, mode)

Rotates a matrix in the local frame pointing in the direction of phi and theta to the global frame Udegga = transpose(complex conjug ( U ) )

Note

  • mode=0: 'loc->glob'
  • mode=1: 'glob->loc'

Arguments

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