get1DSlice Module Function

pure module function get1DSlice(this, indexSet, sliceIndex) result(val)

Return 1D slice of data at dimension given by sliceIndex and with the other indices set to indexSet

Arguments

Type IntentOptional Attributes Name
class(FlatNDData), intent(in) :: this
integer(kind=ik), intent(in), dimension(:) :: indexSet
integer(kind=ik), intent(in) :: sliceIndex

Return Value real(kind=rk), allocatable, dimension(:)