Contains routines to obtain packed and unpacked indices into arrays
Compute the indices in each dimension from the global index
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32), | intent(in) | :: | iG | Index into a global vector |
||
integer(kind=i32), | intent(in) | :: | nSub(:) | Size in each dimension |
Indices in each dimension to return
Given component indices, get the global vector location.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=i32), | intent(in) | :: | iSub(:) | Indices in each dimension. The first entry in iL is the left most index |
||
integer(kind=i32), | intent(in) | :: | nSub(:) | Size in each dimension |
Index in the global vector
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64) | :: | this | ||||
integer(kind=i32) | :: | n | ||||
logical | :: | bound |