Reallocation implementation for resizing arrays
Overloaded resize interface
Reallocate list of characters
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(inout), | allocatable | :: | var(:) |
Instance of the array to be resized |
|
integer, | intent(in), | optional | :: | n |
Dimension of the final array size |
Reallocate list of integers
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout), | allocatable | :: | var(:) |
Instance of the array to be resized |
|
integer, | intent(in), | optional | :: | n |
Dimension of the final array size |
Reallocate list of logicals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(inout), | allocatable | :: | var(:) |
Instance of the array to be resized |
|
integer, | intent(in), | optional | :: | n |
Dimension of the final array size |
Reallocate list of reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(inout), | allocatable | :: | var(:) |
Instance of the array to be resized |
|
integer, | intent(in), | optional | :: | n |
Dimension of the final array size |
Reallocate list of reals
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(inout), | allocatable | :: | var(:,:) |
Instance of the array to be resized |
|
integer, | intent(in), | optional | :: | n |
Dimension of the final array size |