Skip to content

Commit 54a0657

Browse files
committed
Try allocate differently, run zip quietly
1 parent 667f57c commit 54a0657

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/stdlib_io_np_load.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ contains
202202

203203
select type (typed_array => arrays(i)%array)
204204
class is (t_array_${t1[0]}$${k1}$_${rank}$)
205-
typed_array%values = array
205+
allocate(typed_array%value, source=array)
206206
class default
207207
msg = 'Failed to allocate values.'; stat = 1
208208
close(io, status='delete'); return

src/stdlib_io_zip.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ subroutine zip(output_file, files, stat, msg, compressed)
4343
files_str = files_str//' '//char(files(i))
4444
end do
4545

46-
cmd = 'zip '//''//output_file//' '//files_str
46+
cmd = 'zip -q '//''//output_file//' '//files_str
4747
if (.not. is_compressed) cmd = cmd//' -0'
4848

4949
call run(cmd, run_stat)

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 *, size(typed_array%values), size(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)