28 character(len=*),
dimension(:),
allocatable,
intent(inout) :: buf
29 integer,
dimension(1),
intent(in) :: sizes
30 logical,
intent(in),
optional :: initialize
36 if (
present(initialize)) init = initialize
38 if (
allocated(buf))
then
41 allocate(buf(sizes(1)))
57 character(len=*),
dimension(:,:),
allocatable,
intent(inout) :: buf
58 integer,
dimension(2),
intent(in) :: sizes
59 logical,
intent(in),
optional :: initialize
65 if (
present(initialize)) init = initialize
67 if (
allocated(buf))
then
70 allocate(buf(sizes(1), sizes(2)))
75 do c = 1, len(buf(i,j))
88 character(len=*),
dimension(:,:,:),
allocatable,
intent(inout) :: buf
89 integer,
dimension(3),
intent(in) :: sizes
90 logical,
intent(in),
optional :: initialize
96 if (
present(initialize)) init = initialize
98 if (
allocated(buf))
then
101 allocate(buf(sizes(1), sizes(2), sizes(3)))
107 do c = 1, len(buf(i,j,k))
108 buf(i,j,k)(c:c) =
" "
121 character(len=*),
dimension(:,:,:,:),
allocatable,
intent(inout) :: buf
122 integer,
dimension(4),
intent(in) :: sizes
123 logical,
intent(in),
optional :: initialize
126 integer :: i, j, k, l, c
129 if (
present(initialize)) init = initialize
131 if (
allocated(buf))
then
134 allocate(buf(sizes(1), sizes(2), sizes(3), sizes(4)))
141 do c = 1, len(buf(i,j,k,l))
142 buf(i,j,k,l)(c:c) =
" "
155 character(len=*),
dimension(:,:,:,:,:),
allocatable,
intent(inout) :: buf
156 integer,
dimension(5),
intent(in) :: sizes
157 logical,
intent(in),
optional :: initialize
160 integer :: i, j, k, l, m, c
163 if (
present(initialize)) init = initialize
165 if (
allocated(buf))
then
168 allocate(buf(sizes(1), sizes(2), sizes(3), sizes(4), sizes(5)))
176 do c = 1, len(buf(i,j,k,l,m))
177 buf(i,j,k,l,m)(c:c) =
" "
191 character(len=*),
dimension(:,:,:,:,:,:),
allocatable,
intent(inout) :: buf
192 integer,
dimension(6),
intent(in) :: sizes
193 logical,
intent(in),
optional :: initialize
196 integer :: i, j, k, l, m, n, c
199 if (
present(initialize)) init = initialize
201 if (
allocated(buf))
then
204 allocate(buf(sizes(1), sizes(2), sizes(3), sizes(4), sizes(5), sizes(6)))
213 do c = 1, len(buf(i,j,k,l,m,n))
214 buf(i,j,k,l,m,n)(c:c) =
" "
subroutine allocate_array_char_5d(buf, sizes, initialize)
Allocate character arrays using an input array of sizes.
subroutine allocate_array_char_3d(buf, sizes, initialize)
Allocate character arrays using an input array of sizes.
subroutine allocate_array_char_4d(buf, sizes, initialize)
Allocate character arrays using an input array of sizes.
subroutine allocate_array_char_6d(buf, sizes, initialize)
Allocate character arrays using an input array of sizes.
subroutine allocate_array_char_1d(buf, sizes, initialize)
Allocate character arrays using an input array of sizes.
subroutine allocate_array_char_2d(buf, sizes, initialize)
Allocate character arrays using an input array of sizes.