home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / 19011 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.6 KB  |  48 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ncar!netnews.whoi.edu!eos-prog!scotty
  3. From: scotty@eos-prog.whoi.edu (Scott J. McCue)
  4. Subject: Namelist-directed input in SGI Fortran?
  5. Message-ID: <1993Jan21.202525.2050@netnews.whoi.edu>
  6. Sender: scotty@eos-prog (Scott J. McCue)
  7. Organization: Woods Hole Oceanographic Institution
  8. Date: Thu, 21 Jan 93 20:25:25 GMT
  9. Lines: 37
  10.  
  11.  I've been tasked to port a Fortran 77 program from VAX-11 Fortran (version unknown,
  12. circa 1987) to SGI Fortran (3.4.1). I'm relatively weak in Fortran. The VAX-11 code
  13. uses namelist-directed READs of input files with form:
  14.  
  15.  $group-name item = value, value, ... ,
  16.              item = value, value, ... ,
  17.              .
  18.              .
  19.              .
  20.  $END
  21.  $group-name item = value, value, ... ,
  22.              item = value, value, ... ,
  23.              .
  24.              .
  25.              .
  26.  $END
  27.  .
  28.  .
  29.  .
  30.  
  31.   The individual values of each _item_ are placed into an array by the READ statement.
  32.  
  33.   Examination of the SGI _Fortran 77 language Reference Manual_, as well as dinking
  34. around with a small i/o program and the original input file(s), suggests that the VAX-11
  35. version of the input fileis incorrect for SGI in at least two ways:
  36.  
  37. 1. a READ to an array, i.e. several values per _item_, isn't supported.
  38. 2. more than one _group-name_ per file isn't supported.
  39.  
  40. My question(s):
  41.   Is this correct? Or does SGI Fortran indeed support arrays in the namelist as well as
  42. multiple namelists per file? If the latter and not the former, please provide a template
  43. of the input file form.
  44.  
  45. Thanks in advance
  46. Scott M.
  47. scotty@eos-prog.whoi.edu
  48.