Skip to content

Commit 7bc295a

Browse files
committed
Remove prints, initialize stat to 0
1 parent a9e8588 commit 7bc295a

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/stdlib_io_np_load.fypp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ contains
193193
close(io, status='delete'); return
194194
end if
195195

196-
allocate (t_array_${t1[0]}$${k1}$_${rank}$ :: arrays(i)%array, stat=stat)
196+
allocate(t_array_${t1[0]}$${k1}$_${rank}$ :: arrays(i)%array, stat=stat)
197197
if (stat /= 0) then
198198
msg = "Failed to allocate array of type '"//this_type//"' "//&
199199
& 'with total size of '//to_string(product(vshape))
@@ -203,8 +203,6 @@ 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)
208206
class default
209207
msg = 'Failed to allocate values.'; stat = 1
210208
close(io, status='delete'); return

src/stdlib_io_np_save.fypp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ contains
214214
type(string_type), allocatable :: files(:)
215215

216216
if (present(iostat)) iostat = 0
217+
stat = 0
217218

218219
if (present(compressed)) then
219220
is_compressed = compressed

test/io/test_np.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,6 @@ 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
11931192
call check(error, size(typed_array%values), size(input_array_1), "First array does not match in size.")
11941193
if (allocated(error)) then
11951194
call delete_file(output_file); return

0 commit comments

Comments
 (0)