Skip to content

Commit 42bf98d

Browse files
committed
Add some more prints
1 parent 3861863 commit 42bf98d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/stdlib_io_np_load.fypp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ contains
203203
select type (typed_array => arrays(i)%array)
204204
class is (t_array_${t1[0]}$${k1}$_${rank}$)
205205
allocate(typed_array%values, source=array)
206+
print *, 'array size: ' size(array)
207+
print *, 'typed_array%value size: ' size(typed_array%values)
206208
class default
207209
msg = 'Failed to allocate values.'; stat = 1
208210
close(io, status='delete'); return

test/io/test_np.f90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,7 @@ subroutine npz_save_two_arrays(error)
11891189

11901190
select type (typed_array => arrays_reloaded(1)%array)
11911191
class is (t_array_rdp_2)
1192+
print *, typed_array%values, input_array_1
11921193
call check(error, size(typed_array%values), size(input_array_1), "First array does not match in size.")
11931194
if (allocated(error)) then
11941195
call delete_file(output_file); return

0 commit comments

Comments
 (0)