@@ -171,10 +171,6 @@ contains
171
171
end if
172
172
173
173
allocate(t_arr%values, source=array)
174
-
175
- print *, 'after allocating values'
176
- print *, array
177
-
178
174
if (.not. allocated(arrays)) then
179
175
allocate(arrays(1))
180
176
allocate(arrays(1)%array, source=t_arr)
@@ -191,8 +187,6 @@ print *, array
191
187
192
188
allocate(wrapper%array, source=t_arr)
193
189
194
- print *, 'after allocating wrapper'
195
- print *, 't_arr: ', t_arr%values
196
190
print *, 'wrapper: '
197
191
select type (typed_array => wrapper%array)
198
192
class is (t_array_rdp_2)
@@ -204,17 +198,17 @@ end select
204
198
205
199
arrays = [arrays, wrapper]
206
200
207
- ! print *, 'after allocating arrays'
208
- ! do i = 1, size(arrays)
209
- ! print *, arrays(i)%array%name
210
- ! select type (typed_array => arrays(i)%array)
211
- ! class is (t_array_rdp_2)
212
- ! print *, typed_array%values
213
- ! class is (t_array_cdp_1)
214
- ! print *, typed_array%values
215
- ! class default
216
- ! end select
217
- ! end do
201
+ print *, 'after allocating arrays'
202
+ do i = 1, size(arrays)
203
+ print *, arrays(i)%array%name
204
+ select type (typed_array => arrays(i)%array)
205
+ class is (t_array_rdp_2)
206
+ print *, typed_array%values
207
+ class is (t_array_cdp_1)
208
+ print *, typed_array%values
209
+ class default
210
+ end select
211
+ end do
218
212
end
219
213
#:endfor
220
214
#:endfor
0 commit comments