allocate_soc Subroutine

public subroutine allocate_soc(flag, krel, natyp, lmax, socscale, cscl, socscl)

Subroutine handling the allocation/deallocation of arrays that describe the spin-orbit coupling (SOC)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: flag
integer, intent(in) :: krel
integer, intent(in) :: natyp

number of kinds of atoms in unit cell

integer, intent(in) :: lmax

Maximum l component in wave function expansion

real(kind=dp), intent(inout), dimension (:), allocatable :: socscale

Spin-orbit scaling

real(kind=dp), intent(inout), dimension (:, :), allocatable :: cscl

Speed of light scaling

real(kind=dp), intent(inout), dimension (:, :), allocatable :: socscl