Skip to content

Commit d46b7a9

Browse files
committed
smaller array and wider tolerance
1 parent 42521ba commit d46b7a9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/intrinsics/test_intrinsics.fypp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,12 @@ subroutine test_dot_product(error)
248248
end block
249249

250250
block ! test for https://github.com/fortran-lang/stdlib/issues/1016
251-
${t}$, allocatable :: x(:), y(:)
252-
real(${k}$), allocatable :: z(:,:)
253-
real(${k}$), parameter :: tolerance = epsilon(1._${k}$)*10000
251+
${t}$ :: x(128), y(128)
252+
real(${k}$) :: z(128,2)
253+
real(${k}$), parameter :: tolerance = epsilon(1._${k}$)*100000
254254
real(${k}$) :: err(2)
255255
${t}$ :: p(3)
256256

257-
allocate(x(n),y(n),z(n,2))
258257
call random_number(z)
259258
x%re = z(:, 1); x%im = z(:, 2)
260259
call random_number(z)

0 commit comments

Comments
 (0)