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