Skip to content

Commit 1b41b39

Browse files
committed
Properly read value
1 parent 8715690 commit 1b41b39

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/stdlib_io_np_save.fypp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,13 @@ do j = 1, size(files)
262262
end do
263263
do j = 1, size(arrays)
264264
print *, arrays(j)%array%name
265-
print *, arrays(j)%array%values
265+
select type (typed_array => arrays(1)%array)
266+
class is (t_array_rdp_2)
267+
print *, typed_array%values
268+
class is (t_array_cdp_1)
269+
print *, typed_array%values
270+
class default
271+
end select
266272
end do
267273
call zip(filename, files, stat, msg, is_compressed)
268274
if (stat /= 0) then

0 commit comments

Comments
 (0)