1
0
mirror of https://github.com/OpenMP/Examples.git synced 2025-04-11 00:42:12 +01:00
OpenMP-Examples/sources/Example_copyprivate.1f.f
2015-01-13 11:38:24 -08:00

16 lines
309 B
Fortran

! @@name: copyprivate.1f
! @@type: F-fixed
! @@compilable: yes
! @@linkable: no
! @@expect: success
SUBROUTINE INIT(A,B)
REAL A, B
COMMON /XY/ X,Y
!$OMP THREADPRIVATE (/XY/)
!$OMP SINGLE
READ (11) A,B,X,Y
!$OMP END SINGLE COPYPRIVATE (A,B,/XY/)
END SUBROUTINE INIT