NCEPLIBS-g2
3.5.0
|
Reallocate memory, preserving contents. More...
Data Types | |
interface | realloc |
Functions/Subroutines | |
subroutine | realloc_c1 (c, n, m, istat) |
This subroutine reallocates a character array, preserving its contents. More... | |
subroutine | realloc_i (c, n, m, istat) |
This subroutine reorganize integer type data in memory into one one dimensional array. More... | |
subroutine | realloc_r (c, n, m, istat) |
This subroutine reallocates an integer array, preserving its contents. More... | |
Reallocate memory, preserving contents.
This module contains two subroutines to reallocate integer, and character arrays in memory, preseving the existing contents of the array.
subroutine re_alloc::realloc_c1 | ( | character(len=1), dimension(:), pointer | c, |
integer, intent(in) | n, | ||
integer, intent(in) | m, | ||
integer, intent(out) | istat | ||
) |
This subroutine reallocates a character array, preserving its contents.
[in,out] | c | pointer for data in memory. |
[in] | n | dimension for data in memory. This is how much data is currently stored in the array. |
[in] | m | dimension for allocatable array. This is the size the array will be after the allocation of memory. |
[out] | istat | scalar INTEGER variable for allocate.
|
Definition at line 36 of file realloc.F90.
subroutine re_alloc::realloc_i | ( | integer, dimension(:), pointer | c, |
integer, intent(in) | n, | ||
integer, intent(in) | m, | ||
integer, intent(out) | istat | ||
) |
This subroutine reorganize integer type data in memory into one one dimensional array.
[in,out] | c | pointer for data in memory. |
[in] | n | dimension for data in memory. |
[in] | m | dimension for allocatable array. |
[out] | istat | scalar INTEGER variable for allocate. |
Definition at line 125 of file realloc.F90.
subroutine re_alloc::realloc_r | ( | real, dimension(:), pointer | c, |
integer, intent(in) | n, | ||
integer, intent(in) | m, | ||
integer, intent(out) | istat | ||
) |
This subroutine reallocates an integer array, preserving its contents.
[in,out] | c | pointer for data in memory. |
[in] | n | dimension for data in memory. This is how much data is currently stored in the array. |
[in] | m | dimension for allocatable array. This is the size the array will be after the allocation of memory. |
[out] | istat | scalar INTEGER variable for allocate.
|
Definition at line 83 of file realloc.F90.