1
0
mirror of https://github.com/OpenMP/Examples.git synced 2025-04-14 02:11:25 +01:00
2015-07-10 14:06:40 +02:00

20 lines
383 B
Fortran

! @@name: SIMD.5f
! @@type: F-free
! @@compilable: yes
! @@linkable: no
! @@expect: success
subroutine work( a, b, c, n )
implicit none
integer :: i,j,n
double precision :: a(n,n), b(n,n), c(n,n), tmp
!$omp do simd collapse(2) private(tmp)
do j = 1,n
do i = 1,n
tmp = a(i,j) + b(i,j)
c(i,j) = tmp
end do
end do
end subroutine work