2022-04-18 15:02:25 -07:00

14 lines
332 B
Fortran

! @@name: threadprivate.1
! @@type: F-fixed
! @@compilable: yes
! @@linkable: no
! @@expect: success
INTEGER FUNCTION INCREMENT_COUNTER()
COMMON/INC_COMMON/COUNTER
!$OMP THREADPRIVATE(/INC_COMMON/)
COUNTER = COUNTER +1
INCREMENT_COUNTER = COUNTER
RETURN
END FUNCTION INCREMENT_COUNTER