HTML version of Scripted Foils prepared 27 December 1996

Foil 4 Introduction to Fortran90 Arrays - I

From CPS615-Introduction to F90 Features, Rationale for HPF and Problem Architecture Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 24 September 96. by Geoffrey C. Fox *
Secs 436.3
1 Arrays are "true" objects in Fortran90 and are stored as values of elements plus a data descriptor!
2 There are operations on full arrays which have natural parallel implementations seen in HPF
3 New set of array intrinsic (built-in) functions for elements, reductions (process array into a single value), tranformational (reshaping)
  • Note these functions are NOT sufficient for real problems and must have FORALL to define new parallel Array functions
  • FORALL is in HPF but not F90 -- Expected in next round of standard (Fortran95)
  • FORALL( I=0:nx)
    • IF((A(I)+I) < 0) THEN A(I)=0
    • ELSE A(i) = SQRT(A(I)=I)
    • END IF
  • END FORALL

Table Font Size


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Aug 15 1997