Skip to content

Commit 7cea1fd

Browse files
committed
fix test: complex initialization
1 parent 7c6e8a4 commit 7cea1fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/intrinsics/test_intrinsics.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ subroutine test_sum(error)
9090

9191
allocate(x(n))
9292
do i = 1, n
93-
x(i) = complex(&
93+
x(i) = cmplx(&
9494
8*atan(1._${k1}$)*(real(i,kind=${k1}$)-0.5_${k1}$)/real(2*n,kind=${k1}$)**2,&
9595
8*atan(1._${k1}$)*(real(i+n,kind=${k1}$)-0.5_${k1}$)/real(2*n,kind=${k1}$)**2)
9696
end do
@@ -182,7 +182,7 @@ subroutine test_dot_product(error)
182182

183183
allocate(x(n))
184184
do i = 1, n
185-
x(i) = complex(&
185+
x(i) = cmplx(&
186186
sqrt(8*atan(1._${k1}$)*(real(i,kind=${k1}$)-0.5_${k1}$)/real(2*n,kind=${k1}$)**2),&
187187
sqrt(8*atan(1._${k1}$)*(real(i+n,kind=${k1}$)-0.5_${k1}$)/real(2*n,kind=${k1}$)**2))
188188
end do

0 commit comments

Comments
 (0)