calcOcc_vector_int Function

public pure function calcOcc_vector_int(ilut) result(occVector)

Arguments

Type IntentOptional Attributes Name
integer(kind=n_int), intent(in) :: ilut(0:GugaBits%len_orb)

Return Value integer, (nSpatOrbs)


Contents

Source Code


Source Code

    pure function calcOcc_vector_int(ilut) result(occVector)
        ! function which gives the occupation vector in integer form
        integer(n_int), intent(in) :: ilut(0:GugaBits%len_orb)
        integer :: occVector(nSpatOrbs)

        integer :: i

        do i = 1, nSpatOrbs
            occVector(i) = int(getSpatialOccupation(ilut, i))
        end do

    end function calcOcc_vector_int