Skip to content

Commit fd1a6e6

Browse files
committed
Use another notation
1 parent 3f0f29f commit fd1a6e6

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

src/stdlib_io_np_save.fypp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,6 @@ contains
221221
else
222222
is_compressed = .false.
223223
end if
224-
print *, 'in subroutine'
225-
do j = 1, size(arrays)
226-
print *, arrays(j)%array%name
227-
select type (typed_array => arrays(1)%array)
228-
class is (t_array_rdp_2)
229-
print *, typed_array%values
230-
class is (t_array_cdp_1)
231-
print *, typed_array%values
232-
class default
233-
end select
234-
end do
235224

236225
allocate(files(0))
237226
do i = 1, size(arrays)

test/io/test_np.f90

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,37 +1162,13 @@ subroutine npz_save_two_arrays(error)
11621162
call check(error, stat, "Error adding array 1 to the list of arrays.")
11631163
if (allocated(error)) return
11641164

1165-
print *, 'first array'
1166-
do j = 1, size(arrays)
1167-
print *, arrays(j)%array%name
1168-
select type (typed_array => arrays(1)%array)
1169-
class is (t_array_rdp_2)
1170-
print *, typed_array%values
1171-
class is (t_array_cdp_1)
1172-
print *, typed_array%values
1173-
class default
1174-
end select
1175-
end do
1176-
1177-
allocate(input_array_2, source=[(1.0_dp, 2.0_dp), (3.0_dp, 4.0_dp), (5.0_dp, 6.0_dp)])
1165+
input_array_2 = [cmplx(1, 2, kind=8), cmplx(3, 4, kind=8), cmplx(5, 6, kind=8)]
11781166
call add_array(arrays, input_array_2, stat, name=array_name_2)
11791167
call check(error, stat, "Error adding array 2 to the list of arrays.")
11801168
if (allocated(error)) return
11811169
call check(error, size(arrays) == 2, "Wrong array size.")
11821170
if (allocated(error)) return
11831171

1184-
print *, 'in test'
1185-
do j = 1, size(arrays)
1186-
print *, arrays(j)%array%name
1187-
select type (typed_array => arrays(1)%array)
1188-
class is (t_array_rdp_2)
1189-
print *, typed_array%values
1190-
class is (t_array_cdp_1)
1191-
print *, typed_array%values
1192-
class default
1193-
end select
1194-
end do
1195-
11961172
call save_npz(output_file, arrays, stat)
11971173
call check(error, stat, "Error saving arrays as an npz file.")
11981174
if (allocated(error)) then

0 commit comments

Comments
 (0)