Basic HTML version of Foils prepared 17 Sept 1996

Foil 62 FORALL Statement in HPF

From New CPS615HPF and Fortran90 Discussion Sept 17 96 Basic Simulation Track for Computational Science CPS615 -- Fall Semester 96. by Geoffrey C. Fox, Tom Haupt


A very important extension to Fortran 90 and defines one class of parallel DO loop
FORALL will be a language feature of Fortran95
It relaxes the restriction that operands of the rhs expressions must be conformable with the lhs array
It may be masked with a scalar logical expression (extension of WHERE construct)
A FORALL statement may call user-defined (PURE) functions on the elements of an array, simulating Fortran 90 elemental function invocation (albeit with a different syntax)
FORALL( index-spec-list [,mask-expr] ) forall assignment
  • where forall-assignment is conventional single Fortran90 statement



© on Tue Oct 7 1997