home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!elroy.jpl.nasa.gov!ncar!netnews.whoi.edu!eos-prog!scotty
- From: scotty@eos-prog.whoi.edu (Scott J. McCue)
- Subject: Namelist-directed input in SGI Fortran?
- Message-ID: <1993Jan21.202525.2050@netnews.whoi.edu>
- Sender: scotty@eos-prog (Scott J. McCue)
- Organization: Woods Hole Oceanographic Institution
- Date: Thu, 21 Jan 93 20:25:25 GMT
- Lines: 37
-
- I've been tasked to port a Fortran 77 program from VAX-11 Fortran (version unknown,
- circa 1987) to SGI Fortran (3.4.1). I'm relatively weak in Fortran. The VAX-11 code
- uses namelist-directed READs of input files with form:
-
- $group-name item = value, value, ... ,
- item = value, value, ... ,
- .
- .
- .
- $END
- $group-name item = value, value, ... ,
- item = value, value, ... ,
- .
- .
- .
- $END
- .
- .
- .
-
- The individual values of each _item_ are placed into an array by the READ statement.
-
- Examination of the SGI _Fortran 77 language Reference Manual_, as well as dinking
- around with a small i/o program and the original input file(s), suggests that the VAX-11
- version of the input fileis incorrect for SGI in at least two ways:
-
- 1. a READ to an array, i.e. several values per _item_, isn't supported.
- 2. more than one _group-name_ per file isn't supported.
-
- My question(s):
- Is this correct? Or does SGI Fortran indeed support arrays in the namelist as well as
- multiple namelists per file? If the latter and not the former, please provide a template
- of the input file form.
-
- Thanks in advance
- Scott M.
- scotty@eos-prog.whoi.edu
-