home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3165 < prev    next >
Encoding:
Text File  |  1992-08-25  |  886 b   |  33 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!clarkson!news
  3. From: russell@sun.soe.clarkson.edu (David Russell)
  4. Subject: F77, array passing question, dimensions.
  5. Message-ID: <1992Aug26.032018.20430@news.clarkson.edu>
  6. Lines: 20
  7. Sender: news@news.clarkson.edu
  8. Nntp-Posting-Host: sun.soe.clarkson.edu
  9. Organization: Clarkson University
  10. Date: Wed, 26 Aug 1992 03:20:18 GMT
  11.  
  12.    Given an array dimensioned to lets say 10 in a calling routine,
  13. and given the fact that only the first three values are needed in
  14. the called routine, is there any advantage or disadvantage to
  15. dimensioning the array to only 3 in the called routine.
  16.  
  17. real x(10)
  18. ...
  19. call sub(x)
  20. end
  21. subroutine sub(x)
  22. real x(3)
  23. ....
  24. return
  25. end
  26.  
  27. ie. Is there any savings in time, space, performance,......
  28. --
  29. David M. Russell, Mechanical Eng. Dept.
  30. Clarkson University, Potsdam, NY 13676
  31. (315) 268-9806 
  32. russell@sun.soe.clarkson.edu
  33.