Basic HTML version of Foils prepared August 7 98

Foil 6 Methods of Avoiding Sequence Association

From DoD HPF Training -- 6. HPF2 DoD Training and Others -- 1995-98. by Chuck Koelbel -- Rice University


1 Just say "No!"
  • EQUIVALENCE was never a good idea for new HPF codes
  • Included for ease of porting F77 codes, with debatable benefits
2 For new codes:
  • Always declare arrays to be their natural rank
  • Use ALLOCATABLE to make arrays their natural size
  • Use MODULE for global arrays, or pass as explicit arguments
3 For porting codes:
  • Top-down conversion of subroutines
  • If subroutine really needs EQUIVALENCE, it may be better as an EXTRINSIC

in Table To:


© 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 Sun Aug 9 1998