home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!kuhub.cc.ukans.edu!arc2d
- From: arc2d@kuhub.cc.ukans.edu
- Newsgroups: comp.unix.aix
- Subject: FORTRAN on UNIX input problem
- Message-ID: <1992Dec29.134324.45943@kuhub.cc.ukans.edu>
- Date: 29 Dec 92 13:43:24 CST
- Organization: University of Kansas Academic Computing Services
- Lines: 16
-
- I have a question concerning FORTRAN on a RS/6000. The code I'm using (PMARC)
- uses NAMELIST inputs with real values interspersed. A variable in one NAME-
- LIST tells the code that a series of real values is to be read. An example of
- the read statement follows:
- READ(15,*,ERR=700) BY,. . .etc.
- The error this read statement is looking for is the & or $ that signals the
- next NAMELIST (and thus the end of the real values). The problem is: UNIX is
- to "kind"--it gives a warning when it reads the & or $ instead of an error.
- Therefore, it never goes to 700 when the next NAMELIST is encountered.
- Any compiler "switches" or other tricks in UNIX that are available? The
- error trapping works fine on a VAX, I'm want to find a way to improve the
- portability of the code. (I can always read a character string. See if & or $
- is in the second position. Then BACKSPACE and read the real value or
- NAMELIST.)
- Thanks in advance
- Tom Mouch ARC2D@kuhub.cc.ukans.edu
-