alloc Subroutine

private subroutine alloc(this, n_elem, htsize)

Allocate the internal (shared) memory

Type Bound

index_rhash_t

Arguments

Type IntentOptional Attributes Name
class(index_rhash_t), intent(inout) :: this
integer(kind=int64), intent(in) :: n_elem

number of distinct values to store

integer(kind=int64), intent(in) :: htsize

range of the hash function


Source Code

    subroutine alloc(this, n_elem, htsize)
        class(index_rhash_t), intent(inout) :: this
        integer(int64), intent(in) :: n_elem
        integer(int64), intent(in) :: htsize

        call this%shared_ht%alloc(n_elem, htsize)
    end subroutine alloc