37 character(len=1),
pointer,
dimension(:) :: c
38 integer,
intent(in) :: n,m
39 integer,
intent(out) :: istat
41 character(len=1),
pointer,
dimension(:) :: tmp
44 if ( (n<0) .OR. (m<=0) )
then
49 if ( .not.
associated(c) )
then
50 allocate(c(m),stat=istat)
56 allocate(c(m),stat=istat)
57 if ( istat /= 0 )
then
84 real,
pointer,
dimension(:) :: c
85 integer,
intent(in) :: n,m
86 integer,
intent(out) :: istat
88 real,
pointer,
dimension(:) :: tmp
91 if ( (n<0) .OR. (m<=0) )
then
96 if ( .not.
associated(c) )
then
97 allocate(c(m),stat=istat)
103 allocate(c(m),stat=istat)
104 if ( istat /= 0 )
then
126 integer,
pointer,
dimension(:) :: c
127 integer,
intent(in) :: n,m
128 integer,
intent(out) :: istat
130 integer,
pointer,
dimension(:) :: tmp
133 if ( (n<0) .OR. (m<=0) )
then
138 if ( .not.
associated(c) )
then
139 allocate(c(m),stat=istat)
145 allocate(c(m),stat=istat)
146 if ( istat /= 0 )
then
Reallocate memory, preserving contents.
subroutine realloc_r(c, n, m, istat)
This subroutine reallocates an integer array, preserving its contents.
subroutine realloc_c1(c, n, m, istat)
This subroutine reallocates a character array, preserving its contents.
subroutine realloc_i(c, n, m, istat)
This subroutine reorganize integer type data in memory into one one dimensional array.