Similar problem calling PURE procedures from FORALL
This is allowed:
PURE REAL FUNCTION FOO(REAL X)
. . .
FORALL (I = 1 : N) RES (I) = FOO(1.0 * I)
- PURE procedures restrictedŚno side-effects. But
- nothing to prevent them reading global dataŚrandom element of distributed array in common block, say.
- Accesses not predictable from parallel points of call.