Add elements to a vector in chunks.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(item), | intent(inout), | dimension(:), allocatable | :: | vec | ||
| integer, | intent(inout) | :: | n |
counter for last element added to |
||
| integer, | intent(in) | :: | chunk_size |
allocate |
||
| class(item), | intent(in), | optional | :: | val |
the value to add to |
|
| logical, | intent(in), | optional | :: | finished |
set to true to return |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(inout), | dimension(:), allocatable | :: | vec | ||
| integer, | intent(inout) | :: | n |
counter for last element added to |
||
| integer, | intent(in) | :: | chunk_size |
allocate |
||
| integer(kind=int32), | intent(in), | optional | :: | val |
the value to add to |
|
| logical, | intent(in), | optional | :: | finished |
set to true to return |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int64), | intent(inout), | dimension(:), allocatable | :: | vec | ||
| integer, | intent(inout) | :: | n |
counter for last element added to |
||
| integer, | intent(in) | :: | chunk_size |
allocate |
||
| integer(kind=int64), | intent(in), | optional | :: | val |
the value to add to |
|
| logical, | intent(in), | optional | :: | finished |
set to true to return |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(inout), | dimension(:), allocatable | :: | vec | ||
| integer, | intent(inout) | :: | n |
counter for last element added to |
||
| integer, | intent(in) | :: | chunk_size |
allocate |
||
| real(kind=real64), | intent(in), | optional | :: | val |
the value to add to |
|
| logical, | intent(in), | optional | :: | finished |
set to true to return |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real32), | intent(inout), | dimension(:), allocatable | :: | vec | ||
| integer, | intent(inout) | :: | n |
counter for last element added to |
||
| integer, | intent(in) | :: | chunk_size |
allocate |
||
| real(kind=real32), | intent(in), | optional | :: | val |
the value to add to |
|
| logical, | intent(in), | optional | :: | finished |
set to true to return |