OpenMP-Examples/sources/Example_SIMD.4.f90

16 lines
281 B
Fortran

! @@name: SIMD.4f
! @@type: F-free
! @@compilable: yes
! @@linkable: no
! @@expect: success
subroutine work( b, n, m )
implicit none
real :: b(n)
integer :: i,n,m
!$omp simd safelen(16)
do i = m+1, n
b(i) = b(i-m) - 1.0
end do
end subroutine work