Skip to content

Commit 473f193

Browse files
committed
Print properly
1 parent a8d1181 commit 473f193

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

src/stdlib_io_np_save.fypp

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,7 @@ contains
173173
allocate(t_arr%values, source=array)
174174

175175
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
183177

184178
if (.not. allocated(arrays)) then
185179
allocate(arrays(1))
@@ -198,7 +192,9 @@ end select
198192
allocate(wrapper%array, source=t_arr)
199193

200194
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)
202198
class is (t_array_rdp_2)
203199
print *, typed_array%values
204200
class is (t_array_cdp_1)
@@ -208,17 +204,17 @@ end select
208204

209205
arrays = [arrays, wrapper]
210206

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
222218
end
223219
#:endfor
224220
#:endfor

0 commit comments

Comments
 (0)