Skip to content

Commit 332b748

Browse files
committed
revert nmask allocation
1 parent 3e171f7 commit 332b748

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
@@ -44,7 +44,7 @@ subroutine test_sum(error)
4444
x(i) = 8*atan(1._${k1}$)*(real(i,kind=${k1}$)-0.5_${k1}$)/real(n,kind=${k1}$)**2
4545
end do
4646
allocate(mask(n),source=.false.); mask(1:n:2) = .true.
47-
allocate(nmask(n), source = .not.mask(1:n))
47+
allocate(nmask(n)); nmask = .not.mask
4848
! scramble array
4949
do i = 1, n
5050
call random_number(u)
@@ -86,7 +86,7 @@ subroutine test_sum(error)
8686
end do
8787

8888
allocate(mask(n),source=.false.); mask(1:n:2) = .true.
89-
allocate(nmask(n), source = .not.mask(1:n))
89+
allocate(nmask(n)); nmask = .not.mask
9090
! scramble array
9191
do i = 1, n
9292
call random_number(u)

0 commit comments

Comments
 (0)