home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
- From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Subject: Re: Need help with named common blocks
- References: <jumper.724304615@fritz.catt.ncsu.edu> <1992Dec13.211623.1@slacvx.slac.stanford.edu>
- Message-ID: <Bz9xzs.F9n@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Organization: MRL - UIUC
- Distribution: comp
- Date: Tue, 15 Dec 1992 00:14:15 GMT
- Lines: 26
-
- In article <1992Dec13.211623.1@slacvx.slac.stanford.edu>, fairfield@slacvx.slac.stanford.edu
- writes:
- |>In article <jumper.724304615@fritz.catt.ncsu.edu>, jumper@fritz.catt.ncsu.edu (Michael Lanham)
- |>writes:
- |>[...]
- |>> I have several program src files. In the file with the BLOCK DATA segment,
- |>> the COMMON block is named and shaped as follows:
- |>>
- |>> IMPLICIT INTEGER (A-Z)
- |>> COMMON/SHARE1/TABLE(1770),NOPU(54),FLHS(54),UNUSE0(122),
- |>> - XLATE(127),KWT1(50),KWT2(50),STACK1(50),STACK2(50),
- |>> - SYMBOL(8),VALUE(8),UNUSE5(16),CHAR(80),VALUXY(12),
- |>> - LISTX(61),INTERX(70),SYNTAB(2,26),CHARX(26),TAG(50),
- |>> - (50)
- |>
- |> [...]
- |>... something like CHAR(80) is most likely declared later to be
- |>of type CHARACTER*1 (or BYTE or INTEGER*1 or LOGICAL*1)...
-
- I think that the standard does not allow mixing character and non-character
- variables in the same common block. Correct me if I am wrong.
- --
- Furio Ercolessi
- Materials Research Laboratory | Intl School for Advanced Studies
- Univ. of Illinois at Urbana-Champaign | Trieste, Italy
- furio@uiuc.edu | furio@sissa.it
-