home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / fortran / 4232 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.4 KB  |  39 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!kronos.arc.nasa.gov!iscnvx!netcomsv!netcom.com!jchauvin
  3. From: jchauvin@netcom.com (John H. Chauvin)
  4. Subject: Dimensioning arrays passed in a parameter list.
  5. Message-ID: <1992Nov7.160034.6836@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Sat, 7 Nov 1992 16:00:34 GMT
  8. Lines: 29
  9.  
  10.  
  11. I am currently porting a FORTRAN 66 program from an IBM 3090 to a Silicon 
  12. Graphics workstation. Can someone tell me the correct FORTRAN 77 procedure 
  13. for dimensioning arrays passed in a call parameter list: For example:
  14.  
  15. .                DIMENSION A(50),B(50)
  16.                                      .
  17.                                      .
  18.                                      .
  19.                                      .
  20.                 CALL XYZ(A,B)
  21.                                      .
  22.                                      .
  23.  
  24.                  SUBROUTINE XYZ(A,B)
  25.                  DIMENSION A(1),B(1)            <====== Is this correct?
  26.                  DIMENSION A(*),B(*)             <====== Or Is this right?
  27.                                      .
  28.                                      .
  29.  
  30.  
  31. How do I handle passing two or three dimensional arrays? (A(1,1,1)  or A(*,*,*)?)
  32.  
  33. Thanks,
  34.  
  35. jchauvin@netcom.com
  36. -- 
  37. John H. Chauvin jchauvin@netcom.COM
  38. Netcom - Online Communication Services San Jose, CA
  39.