apply_inversion Function

public function apply_inversion(in_orbs) result(out_orbs)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: in_orbs(nBasis/2)

Return Value integer, (nBasis/2)


Contents

Source Code


Source Code

    function apply_inversion(in_orbs) result(out_orbs)
        ! apply inversion through the k-point
        integer, intent(in) :: in_orbs(nBasis / 2)
        integer :: out_orbs(nBasis / 2)

        integer :: i

        if (.not. t_symmetry_inversion) then
            out_orbs = in_orbs
            return
        end if

        do i = 1, nBasis / 2
            out_orbs(i) = inversion(in_orbs(i))
        end do

    end function apply_inversion