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 | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(AliasSampler_1D_t) | :: | this | ||||
integer, | intent(in) | :: | nEntries | |||
integer, | intent(in) | :: | entrySize | |||
character(len=*), | intent(in) | :: | name |
subroutine setupSamplerArray_1D(this, nEntries, entrySize, name)
class(AliasSampler_1D_t) :: this
integer, intent(in) :: nEntries, entrySize
character(*), intent(in) :: name
call this%alias_sampler%shared_alloc([nEntries, 1, 1], entrySize, name)
end subroutine setupSamplerArray_1D