@@ -171,10 +171,6 @@ contains
171171 end if
172172
173173 allocate(t_arr%values, source=array)
174-
175- print *, 'after allocating values'
176- print *, array
177-
178174 if (.not. allocated(arrays)) then
179175 allocate(arrays(1))
180176 allocate(arrays(1)%array, source=t_arr)
@@ -191,8 +187,6 @@ print *, array
191187
192188 allocate(wrapper%array, source=t_arr)
193189
194- print *, 'after allocating wrapper'
195- print *, 't_arr: ', t_arr%values
196190print *, 'wrapper: '
197191select type (typed_array => wrapper%array)
198192 class is (t_array_rdp_2)
@@ -204,17 +198,17 @@ end select
204198
205199 arrays = [arrays, wrapper]
206200
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
218212 end
219213#:endfor
220214#:endfor
0 commit comments