setupSamplerArray_2D Subroutine

private subroutine setupSamplerArray_2D(this, dims, entrySize, name)

Setup an array of samplers using a single shared resource (split into parts associated with one of them each). This only does the allocation. @param[in] nEntries number of samplers to initialise @param[in] entrySize number of values per sampler

Type Bound

AliasSampler_2D_t

Arguments

Type IntentOptional Attributes Name
class(AliasSampler_2D_t) :: this
integer, intent(in) :: dims(2)
integer, intent(in) :: entrySize
character(len=*), intent(in) :: name

Contents

Source Code


Source Code

    subroutine setupSamplerArray_2D(this, dims, entrySize, name)
        class(AliasSampler_2D_t) :: this
        integer, intent(in) :: dims(2), entrySize
        character(*), intent(in) :: name
        call this%alias_sampler%shared_alloc([dims(1), dims(2), 1], entrySize, name)
    end subroutine setupSamplerArray_2D