Go to the documentation of this file.
49 character(len=1),
pointer,
dimension(:) :: c
50 integer,
intent(in) :: n,m
51 integer,
intent(out) :: istat
53 character(len=1),
pointer,
dimension(:) :: tmp
56 if ( (n<0) .OR. (m<=0) )
then
61 if ( .not.
associated(c) )
then
62 allocate(c(m),stat=istat)
68 allocate(c(m),stat=istat)
69 if ( istat /= 0 )
then
91 real,
pointer,
dimension(:) :: c
92 integer,
intent(in) :: n,m
93 integer,
intent(out) :: istat
95 real,
pointer,
dimension(:) :: tmp
98 if ( (n<0) .OR. (m<=0) )
then
103 if ( .not.
associated(c) )
then
104 allocate(c(m),stat=istat)
110 allocate(c(m),stat=istat)
111 if ( istat /= 0 )
then
133 integer,
pointer,
dimension(:) :: c
134 integer,
intent(in) :: n,m
135 integer,
intent(out) :: istat
137 integer,
pointer,
dimension(:) :: tmp
140 if ( (n<0) .OR. (m<=0) )
then
145 if ( .not.
associated(c) )
then
146 allocate(c(m),stat=istat)
152 allocate(c(m),stat=istat)
153 if ( istat /= 0 )
then
subroutine realloc_c1(c, n, m, istat)
This subroutine reorganize character type data in memory into one one dimensional array.
This module contains three subroutines to reorganize the integer, real and character data in memory i...
subroutine realloc_i(c, n, m, istat)
This subroutine reorganize integer type data in memory into one one dimensional array.
subroutine realloc_r(c, n, m, istat)
This subroutine reorganize real type data in memory into one one dimensional array.