@@ -1162,37 +1162,13 @@ subroutine npz_save_two_arrays(error)
1162
1162
call check(error, stat, " Error adding array 1 to the list of arrays." )
1163
1163
if (allocated (error)) return
1164
1164
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 )]
1178
1166
call add_array(arrays, input_array_2, stat, name= array_name_2)
1179
1167
call check(error, stat, " Error adding array 2 to the list of arrays." )
1180
1168
if (allocated (error)) return
1181
1169
call check(error, size (arrays) == 2 , " Wrong array size." )
1182
1170
if (allocated (error)) return
1183
1171
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
-
1196
1172
call save_npz(output_file, arrays, stat)
1197
1173
call check(error, stat, " Error saving arrays as an npz file." )
1198
1174
if (allocated (error)) then
0 commit comments