determineKMatSize Function

public function determineKMatSize() result(kMatSize)

Arguments

None

Return Value integer(kind=int64)


Contents

Source Code


Source Code

    function determineKMatSize() result(kMatSize)
        implicit none
        integer(int64) :: kMatSize
        integer :: nBI

        nBI = numBasisIndices(nBasis)
! kmat has the same access pattern as umat, so use UMatInd as indexing function
! the index of the largest element
        kMatSize = UMatInd(nBI, nBI, nBI, nBI)
    end function determineKMatSize