Skip to content

Commit 36b7ad7

Browse files
committed
Use other array notation
1 parent 3beff30 commit 36b7ad7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/io/test_np.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,15 +1158,17 @@ subroutine npz_save_two_arrays(error)
11581158

11591159
allocate(input_array_1(5, 6))
11601160
call random_number(input_array_1)
1161-
input_array_2 = [(1.0_dp, 2.0_dp), (3.0_dp, 4.0_dp), (5.0_dp, 6.0_dp)]
11621161
call add_array(arrays, input_array_1, stat, name=array_name_1)
11631162
call check(error, stat, "Error adding array 1 to the list of arrays.")
11641163
if (allocated(error)) return
1164+
1165+
input_array_2 = (/(1.0_dp, 2.0_dp), (3.0_dp, 4.0_dp), (5.0_dp, 6.0_dp)/)
11651166
call add_array(arrays, input_array_2, stat, name=array_name_2)
11661167
call check(error, stat, "Error adding array 2 to the list of arrays.")
11671168
if (allocated(error)) return
11681169
call check(error, size(arrays) == 2, "Wrong array size.")
11691170
if (allocated(error)) return
1171+
11701172
print *, 'in test'
11711173
do j = 1, size(arrays)
11721174
print *, arrays(j)%array%name
@@ -1178,6 +1180,7 @@ subroutine npz_save_two_arrays(error)
11781180
class default
11791181
end select
11801182
end do
1183+
11811184
call save_npz(output_file, arrays, stat)
11821185
call check(error, stat, "Error saving arrays as an npz file.")
11831186
if (allocated(error)) then

0 commit comments

Comments
 (0)