home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!clarkson!news
- From: russell@sun.soe.clarkson.edu (David Russell)
- Subject: F77, array passing question, dimensions.
- Message-ID: <1992Aug26.032018.20430@news.clarkson.edu>
- Lines: 20
- Sender: news@news.clarkson.edu
- Nntp-Posting-Host: sun.soe.clarkson.edu
- Organization: Clarkson University
- Date: Wed, 26 Aug 1992 03:20:18 GMT
-
- Given an array dimensioned to lets say 10 in a calling routine,
- and given the fact that only the first three values are needed in
- the called routine, is there any advantage or disadvantage to
- dimensioning the array to only 3 in the called routine.
-
- real x(10)
- ...
- call sub(x)
- end
- subroutine sub(x)
- real x(3)
- ....
- return
- end
-
- ie. Is there any savings in time, space, performance,......
- --
- David M. Russell, Mechanical Eng. Dept.
- Clarkson University, Potsdam, NY 13676
- (315) 268-9806
- russell@sun.soe.clarkson.edu
-