Skip to content

Commit c3b830e

Browse files
committed
Print before and after adding wrapper to array
1 parent d778aba commit c3b830e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/stdlib_io_np_save.fypp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,21 @@ contains
187187

188188
allocate(wrapper%array, source=t_arr)
189189

190-
print *, 'wrapper: '
191-
select type (typed_array => wrapper%array)
192-
class is (t_array_rdp_2)
193-
print *, typed_array%values
194-
class is (t_array_cdp_1)
195-
print *, typed_array%values
196-
class default
197-
end select
190+
print *, 'before adding to arrays'
191+
do i = 1, size(arrays)
192+
print *, arrays(i)%array%name
193+
select type (typed_array => arrays(i)%array)
194+
class is (t_array_rdp_2)
195+
print *, typed_array%values
196+
class is (t_array_cdp_1)
197+
print *, typed_array%values
198+
class default
199+
end select
200+
end do
198201

199202
arrays = [arrays, wrapper]
200203

201-
print *, 'after allocating arrays'
204+
print *, 'after adding to arrays'
202205
do i = 1, size(arrays)
203206
print *, arrays(i)%array%name
204207
select type (typed_array => arrays(i)%array)

0 commit comments

Comments
 (0)