MODULE Source1
IMPLICIT NONE
PUBLIC :: sub_a
CONTAINS
SUBROUTINE sub_a (N,H)
INTEGER, PARAMETER :: wp = SELECTED_REAL_KIND(12,307)
INTEGER, INTENT(in) :: N
REAL(wp), DIMENSION(N), INTENT(inout) :: H
INTEGER::k
DO k = 2,N
H = H+H
END DO
END SUBROUTINE sub_a
END MODULE Source1
PROGRAM Console1
USE Source1
IMPLICIT NONE
INTEGER, PARAMETER :: wp = SELECTED_REAL_KIND(12,307)
INTEGER, PARAMETER :: k = 20
REAL(wp), DIMENSION(:), ALLOCATABLE :: v
ALLOCATE(v(k))
v(:) = 0.0
CALL sub_a (k,v)
END PROGRAM Console1
1111.png (29.75 KB, 下载次数: 64)
Transpose 发表于 2024-3-28 08:41
可能是ifx还没适配好
Viola 发表于 2024-3-28 17:27
原来是这样,谢谢回复!我干脆更新了oneAPI没有这个问题了
-------------------------------------------- ...
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |