@@ -123,7 +123,9 @@ module subroutine save_npy_rsp_1(filename, array, iostat, iomsg)
123
123
end if
124
124
125
125
if (present (iomsg)) then
126
- iomsg = " Failed to write array to file '" // filename// " '"
126
+ if (stat /= 0 ) then
127
+ iomsg = " Failed to write array to file '" // filename// " '"
128
+ end if
127
129
end if
128
130
end subroutine save_npy_rsp_1
129
131
! > Save 2-dimensional array in npy format
@@ -156,7 +158,9 @@ module subroutine save_npy_rsp_2(filename, array, iostat, iomsg)
156
158
end if
157
159
158
160
if (present (iomsg)) then
159
- iomsg = " Failed to write array to file '" // filename// " '"
161
+ if (stat /= 0 ) then
162
+ iomsg = " Failed to write array to file '" // filename// " '"
163
+ end if
160
164
end if
161
165
end subroutine save_npy_rsp_2
162
166
! > Save 3-dimensional array in npy format
@@ -189,7 +193,9 @@ module subroutine save_npy_rsp_3(filename, array, iostat, iomsg)
189
193
end if
190
194
191
195
if (present (iomsg)) then
192
- iomsg = " Failed to write array to file '" // filename// " '"
196
+ if (stat /= 0 ) then
197
+ iomsg = " Failed to write array to file '" // filename// " '"
198
+ end if
193
199
end if
194
200
end subroutine save_npy_rsp_3
195
201
! > Save 4-dimensional array in npy format
@@ -222,7 +228,9 @@ module subroutine save_npy_rsp_4(filename, array, iostat, iomsg)
222
228
end if
223
229
224
230
if (present (iomsg)) then
225
- iomsg = " Failed to write array to file '" // filename// " '"
231
+ if (stat /= 0 ) then
232
+ iomsg = " Failed to write array to file '" // filename// " '"
233
+ end if
226
234
end if
227
235
end subroutine save_npy_rsp_4
228
236
! > Save 1-dimensional array in npy format
@@ -255,7 +263,9 @@ module subroutine save_npy_rdp_1(filename, array, iostat, iomsg)
255
263
end if
256
264
257
265
if (present (iomsg)) then
258
- iomsg = " Failed to write array to file '" // filename// " '"
266
+ if (stat /= 0 ) then
267
+ iomsg = " Failed to write array to file '" // filename// " '"
268
+ end if
259
269
end if
260
270
end subroutine save_npy_rdp_1
261
271
! > Save 2-dimensional array in npy format
@@ -288,7 +298,9 @@ module subroutine save_npy_rdp_2(filename, array, iostat, iomsg)
288
298
end if
289
299
290
300
if (present (iomsg)) then
291
- iomsg = " Failed to write array to file '" // filename// " '"
301
+ if (stat /= 0 ) then
302
+ iomsg = " Failed to write array to file '" // filename// " '"
303
+ end if
292
304
end if
293
305
end subroutine save_npy_rdp_2
294
306
! > Save 3-dimensional array in npy format
@@ -321,7 +333,9 @@ module subroutine save_npy_rdp_3(filename, array, iostat, iomsg)
321
333
end if
322
334
323
335
if (present (iomsg)) then
324
- iomsg = " Failed to write array to file '" // filename// " '"
336
+ if (stat /= 0 ) then
337
+ iomsg = " Failed to write array to file '" // filename// " '"
338
+ end if
325
339
end if
326
340
end subroutine save_npy_rdp_3
327
341
! > Save 4-dimensional array in npy format
@@ -354,7 +368,9 @@ module subroutine save_npy_rdp_4(filename, array, iostat, iomsg)
354
368
end if
355
369
356
370
if (present (iomsg)) then
357
- iomsg = " Failed to write array to file '" // filename// " '"
371
+ if (stat /= 0 ) then
372
+ iomsg = " Failed to write array to file '" // filename// " '"
373
+ end if
358
374
end if
359
375
end subroutine save_npy_rdp_4
360
376
! > Save 1-dimensional array in npy format
@@ -387,7 +403,9 @@ module subroutine save_npy_iint8_1(filename, array, iostat, iomsg)
387
403
end if
388
404
389
405
if (present (iomsg)) then
390
- iomsg = " Failed to write array to file '" // filename// " '"
406
+ if (stat /= 0 ) then
407
+ iomsg = " Failed to write array to file '" // filename// " '"
408
+ end if
391
409
end if
392
410
end subroutine save_npy_iint8_1
393
411
! > Save 2-dimensional array in npy format
@@ -420,7 +438,9 @@ module subroutine save_npy_iint8_2(filename, array, iostat, iomsg)
420
438
end if
421
439
422
440
if (present (iomsg)) then
423
- iomsg = " Failed to write array to file '" // filename// " '"
441
+ if (stat /= 0 ) then
442
+ iomsg = " Failed to write array to file '" // filename// " '"
443
+ end if
424
444
end if
425
445
end subroutine save_npy_iint8_2
426
446
! > Save 3-dimensional array in npy format
@@ -453,7 +473,9 @@ module subroutine save_npy_iint8_3(filename, array, iostat, iomsg)
453
473
end if
454
474
455
475
if (present (iomsg)) then
456
- iomsg = " Failed to write array to file '" // filename// " '"
476
+ if (stat /= 0 ) then
477
+ iomsg = " Failed to write array to file '" // filename// " '"
478
+ end if
457
479
end if
458
480
end subroutine save_npy_iint8_3
459
481
! > Save 4-dimensional array in npy format
@@ -486,7 +508,9 @@ module subroutine save_npy_iint8_4(filename, array, iostat, iomsg)
486
508
end if
487
509
488
510
if (present (iomsg)) then
489
- iomsg = " Failed to write array to file '" // filename// " '"
511
+ if (stat /= 0 ) then
512
+ iomsg = " Failed to write array to file '" // filename// " '"
513
+ end if
490
514
end if
491
515
end subroutine save_npy_iint8_4
492
516
! > Save 1-dimensional array in npy format
@@ -519,7 +543,9 @@ module subroutine save_npy_iint16_1(filename, array, iostat, iomsg)
519
543
end if
520
544
521
545
if (present (iomsg)) then
522
- iomsg = " Failed to write array to file '" // filename// " '"
546
+ if (stat /= 0 ) then
547
+ iomsg = " Failed to write array to file '" // filename// " '"
548
+ end if
523
549
end if
524
550
end subroutine save_npy_iint16_1
525
551
! > Save 2-dimensional array in npy format
@@ -552,7 +578,9 @@ module subroutine save_npy_iint16_2(filename, array, iostat, iomsg)
552
578
end if
553
579
554
580
if (present (iomsg)) then
555
- iomsg = " Failed to write array to file '" // filename// " '"
581
+ if (stat /= 0 ) then
582
+ iomsg = " Failed to write array to file '" // filename// " '"
583
+ end if
556
584
end if
557
585
end subroutine save_npy_iint16_2
558
586
! > Save 3-dimensional array in npy format
@@ -585,7 +613,9 @@ module subroutine save_npy_iint16_3(filename, array, iostat, iomsg)
585
613
end if
586
614
587
615
if (present (iomsg)) then
588
- iomsg = " Failed to write array to file '" // filename// " '"
616
+ if (stat /= 0 ) then
617
+ iomsg = " Failed to write array to file '" // filename// " '"
618
+ end if
589
619
end if
590
620
end subroutine save_npy_iint16_3
591
621
! > Save 4-dimensional array in npy format
@@ -618,7 +648,9 @@ module subroutine save_npy_iint16_4(filename, array, iostat, iomsg)
618
648
end if
619
649
620
650
if (present (iomsg)) then
621
- iomsg = " Failed to write array to file '" // filename// " '"
651
+ if (stat /= 0 ) then
652
+ iomsg = " Failed to write array to file '" // filename// " '"
653
+ end if
622
654
end if
623
655
end subroutine save_npy_iint16_4
624
656
! > Save 1-dimensional array in npy format
@@ -651,7 +683,9 @@ module subroutine save_npy_iint32_1(filename, array, iostat, iomsg)
651
683
end if
652
684
653
685
if (present (iomsg)) then
654
- iomsg = " Failed to write array to file '" // filename// " '"
686
+ if (stat /= 0 ) then
687
+ iomsg = " Failed to write array to file '" // filename// " '"
688
+ end if
655
689
end if
656
690
end subroutine save_npy_iint32_1
657
691
! > Save 2-dimensional array in npy format
@@ -684,7 +718,9 @@ module subroutine save_npy_iint32_2(filename, array, iostat, iomsg)
684
718
end if
685
719
686
720
if (present (iomsg)) then
687
- iomsg = " Failed to write array to file '" // filename// " '"
721
+ if (stat /= 0 ) then
722
+ iomsg = " Failed to write array to file '" // filename// " '"
723
+ end if
688
724
end if
689
725
end subroutine save_npy_iint32_2
690
726
! > Save 3-dimensional array in npy format
@@ -717,7 +753,9 @@ module subroutine save_npy_iint32_3(filename, array, iostat, iomsg)
717
753
end if
718
754
719
755
if (present (iomsg)) then
720
- iomsg = " Failed to write array to file '" // filename// " '"
756
+ if (stat /= 0 ) then
757
+ iomsg = " Failed to write array to file '" // filename// " '"
758
+ end if
721
759
end if
722
760
end subroutine save_npy_iint32_3
723
761
! > Save 4-dimensional array in npy format
@@ -750,7 +788,9 @@ module subroutine save_npy_iint32_4(filename, array, iostat, iomsg)
750
788
end if
751
789
752
790
if (present (iomsg)) then
753
- iomsg = " Failed to write array to file '" // filename// " '"
791
+ if (stat /= 0 ) then
792
+ iomsg = " Failed to write array to file '" // filename// " '"
793
+ end if
754
794
end if
755
795
end subroutine save_npy_iint32_4
756
796
! > Save 1-dimensional array in npy format
@@ -783,7 +823,9 @@ module subroutine save_npy_iint64_1(filename, array, iostat, iomsg)
783
823
end if
784
824
785
825
if (present (iomsg)) then
786
- iomsg = " Failed to write array to file '" // filename// " '"
826
+ if (stat /= 0 ) then
827
+ iomsg = " Failed to write array to file '" // filename// " '"
828
+ end if
787
829
end if
788
830
end subroutine save_npy_iint64_1
789
831
! > Save 2-dimensional array in npy format
@@ -816,7 +858,9 @@ module subroutine save_npy_iint64_2(filename, array, iostat, iomsg)
816
858
end if
817
859
818
860
if (present (iomsg)) then
819
- iomsg = " Failed to write array to file '" // filename// " '"
861
+ if (stat /= 0 ) then
862
+ iomsg = " Failed to write array to file '" // filename// " '"
863
+ end if
820
864
end if
821
865
end subroutine save_npy_iint64_2
822
866
! > Save 3-dimensional array in npy format
@@ -849,7 +893,9 @@ module subroutine save_npy_iint64_3(filename, array, iostat, iomsg)
849
893
end if
850
894
851
895
if (present (iomsg)) then
852
- iomsg = " Failed to write array to file '" // filename// " '"
896
+ if (stat /= 0 ) then
897
+ iomsg = " Failed to write array to file '" // filename// " '"
898
+ end if
853
899
end if
854
900
end subroutine save_npy_iint64_3
855
901
! > Save 4-dimensional array in npy format
@@ -882,7 +928,9 @@ module subroutine save_npy_iint64_4(filename, array, iostat, iomsg)
882
928
end if
883
929
884
930
if (present (iomsg)) then
885
- iomsg = " Failed to write array to file '" // filename// " '"
931
+ if (stat /= 0 ) then
932
+ iomsg = " Failed to write array to file '" // filename// " '"
933
+ end if
886
934
end if
887
935
end subroutine save_npy_iint64_4
888
936
! > Save 1-dimensional array in npy format
@@ -915,7 +963,9 @@ module subroutine save_npy_csp_1(filename, array, iostat, iomsg)
915
963
end if
916
964
917
965
if (present (iomsg)) then
918
- iomsg = " Failed to write array to file '" // filename// " '"
966
+ if (stat /= 0 ) then
967
+ iomsg = " Failed to write array to file '" // filename// " '"
968
+ end if
919
969
end if
920
970
end subroutine save_npy_csp_1
921
971
! > Save 2-dimensional array in npy format
@@ -948,7 +998,9 @@ module subroutine save_npy_csp_2(filename, array, iostat, iomsg)
948
998
end if
949
999
950
1000
if (present (iomsg)) then
951
- iomsg = " Failed to write array to file '" // filename// " '"
1001
+ if (stat /= 0 ) then
1002
+ iomsg = " Failed to write array to file '" // filename// " '"
1003
+ end if
952
1004
end if
953
1005
end subroutine save_npy_csp_2
954
1006
! > Save 3-dimensional array in npy format
@@ -981,7 +1033,9 @@ module subroutine save_npy_csp_3(filename, array, iostat, iomsg)
981
1033
end if
982
1034
983
1035
if (present (iomsg)) then
984
- iomsg = " Failed to write array to file '" // filename// " '"
1036
+ if (stat /= 0 ) then
1037
+ iomsg = " Failed to write array to file '" // filename// " '"
1038
+ end if
985
1039
end if
986
1040
end subroutine save_npy_csp_3
987
1041
! > Save 4-dimensional array in npy format
@@ -1014,7 +1068,9 @@ module subroutine save_npy_csp_4(filename, array, iostat, iomsg)
1014
1068
end if
1015
1069
1016
1070
if (present (iomsg)) then
1017
- iomsg = " Failed to write array to file '" // filename// " '"
1071
+ if (stat /= 0 ) then
1072
+ iomsg = " Failed to write array to file '" // filename// " '"
1073
+ end if
1018
1074
end if
1019
1075
end subroutine save_npy_csp_4
1020
1076
! > Save 1-dimensional array in npy format
@@ -1047,7 +1103,9 @@ module subroutine save_npy_cdp_1(filename, array, iostat, iomsg)
1047
1103
end if
1048
1104
1049
1105
if (present (iomsg)) then
1050
- iomsg = " Failed to write array to file '" // filename// " '"
1106
+ if (stat /= 0 ) then
1107
+ iomsg = " Failed to write array to file '" // filename// " '"
1108
+ end if
1051
1109
end if
1052
1110
end subroutine save_npy_cdp_1
1053
1111
! > Save 2-dimensional array in npy format
@@ -1080,7 +1138,9 @@ module subroutine save_npy_cdp_2(filename, array, iostat, iomsg)
1080
1138
end if
1081
1139
1082
1140
if (present (iomsg)) then
1083
- iomsg = " Failed to write array to file '" // filename// " '"
1141
+ if (stat /= 0 ) then
1142
+ iomsg = " Failed to write array to file '" // filename// " '"
1143
+ end if
1084
1144
end if
1085
1145
end subroutine save_npy_cdp_2
1086
1146
! > Save 3-dimensional array in npy format
@@ -1113,7 +1173,9 @@ module subroutine save_npy_cdp_3(filename, array, iostat, iomsg)
1113
1173
end if
1114
1174
1115
1175
if (present (iomsg)) then
1116
- iomsg = " Failed to write array to file '" // filename// " '"
1176
+ if (stat /= 0 ) then
1177
+ iomsg = " Failed to write array to file '" // filename// " '"
1178
+ end if
1117
1179
end if
1118
1180
end subroutine save_npy_cdp_3
1119
1181
! > Save 4-dimensional array in npy format
@@ -1146,7 +1208,9 @@ module subroutine save_npy_cdp_4(filename, array, iostat, iomsg)
1146
1208
end if
1147
1209
1148
1210
if (present (iomsg)) then
1149
- iomsg = " Failed to write array to file '" // filename// " '"
1211
+ if (stat /= 0 ) then
1212
+ iomsg = " Failed to write array to file '" // filename// " '"
1213
+ end if
1150
1214
end if
1151
1215
end subroutine save_npy_cdp_4
1152
1216
0 commit comments