Visible to Intel only — GUID: GUID-E2C0F9BA-DB52-4701-8E84-C30B8E2BB285
Visible to Intel only — GUID: GUID-E2C0F9BA-DB52-4701-8E84-C30B8E2BB285
ATOMIC_REF
Atomic Intrinsic Subroutine (Generic): Lets you reference a variable atomically.
CALL ATOMIC_REF (value, atom [, stat])
value |
(Output) Must be a scalar and of the same type as atom. If its kind is the same as that of atom or its type is logical, it becomes defined with the value of atom. Otherwise, it is defined with the value of INT(ATOM, KIND (VALUE)). |
atom |
(Input) Must be a scalar coarray or coindexed object and of type integer with kind ATOMIC_INT_KIND or of type logical with kind ATOMIC_LOGICAL_KIND. ATOMIC_INT_KIND and ATOMIC_LOGICAL_KIND are named constants in the intrinsic module ISO_FORTRAN_ENV. |
stat |
(Output; optional) Must be a non-coindexed integer scalar with a decimal exponent range of at least four (KIND=2 or greater). The value assigned to stat is specified in Overview of Atomic Subroutines. If stat is not present and an error condition occurs, error termination is initiated. |
Example
Consider the following:
CALL ATOMIC_REF (SOL, I [9])
This causes SOL to become defined with the value of I on image 9.