mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
19 lines
357 B
Fortran
19 lines
357 B
Fortran
! @@name: private.1f
|
|
! @@type: F-fixed
|
|
! @@compilable: yes
|
|
! @@linkable: yes
|
|
! @@expect: success
|
|
PROGRAM PRIV_EXAMPLE
|
|
INTEGER I, J
|
|
|
|
I = 1
|
|
J = 2
|
|
|
|
!$OMP PARALLEL PRIVATE(I) FIRSTPRIVATE(J)
|
|
I = 3
|
|
J = J + 2
|
|
!$OMP END PARALLEL
|
|
|
|
PRINT *, I, J ! I .eq. 1 .and. J .eq. 2
|
|
END PROGRAM PRIV_EXAMPLE
|