Message text written by Mike
>Would someone be kind enough to explain the purpose, use and need for
"PURE" procedures?<
To quote from Section 6.10 of "Fortran 90/95 Explained": "... used within
forall statements or constructs, the possibility that a function or
subroutine reference might have side effects is a severe impediment to
optimization on a parallel processor -- the order of execution of the
assignments could affect the results. In order to control this situation,
it is possoble for the programmer to assert that a procedure has no side
effects by adding the pure keyword to the subroutine or function statement.
In practical terms, this is an assertion that ..."
Hope that helps,
Mike Metcalf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|