@@ -173,13 +173,7 @@ contains
173
173
allocate(t_arr%values, source=array)
174
174
175
175
print *, 'after allocating values'
176
- select type (typed_array => t_arr%values)
177
- class is (t_array_rdp_2)
178
- print *, typed_array%values
179
- class is (t_array_cdp_1)
180
- print *, typed_array%values
181
- class default
182
- end select
176
+ print *, array
183
177
184
178
if (.not. allocated(arrays)) then
185
179
allocate(arrays(1))
@@ -198,7 +192,9 @@ end select
198
192
allocate(wrapper%array, source=t_arr)
199
193
200
194
print *, 'after allocating wrapper'
201
- select type (typed_array => t_arr%values)
195
+ print *, 't_arr: ', t_arr%values
196
+ print *, 'wrapper: '
197
+ select type (typed_array => wrapper%array)
202
198
class is (t_array_rdp_2)
203
199
print *, typed_array%values
204
200
class is (t_array_cdp_1)
@@ -208,17 +204,17 @@ end select
208
204
209
205
arrays = [arrays, wrapper]
210
206
211
- print *, 'after allocating arrays'
212
- do i = 1, size(arrays)
213
- print *, arrays(i)%array%name
214
- select type (typed_array => arrays(i)%array)
215
- class is (t_array_rdp_2)
216
- print *, typed_array%values
217
- class is (t_array_cdp_1)
218
- print *, typed_array%values
219
- class default
220
- end select
221
- end do
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
222
218
end
223
219
#:endfor
224
220
#:endfor
0 commit comments