home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!jet!cpg
- From: cpg@jet.uk (Dr Chris P Gatcombe)
- Newsgroups: comp.lang.fortran
- Subject: Re: What extensions do you use?
- Message-ID: <1992Aug14.081836.17299@jet.uk>
- Date: 14 Aug 92 08:18:36 GMT
- References: <1992Aug13.004448.4409@ccu1.aukuni.ac.nz>
- Organization: Joint European Torus
- Lines: 41
-
- In <1992Aug13.004448.4409@ccu1.aukuni.ac.nz> ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig) writes:
-
- >What extensions do you usually use when programming FORTRAN? I try to
- >restrict myself to two: Use of INCLUDE statements, without which COMMON
- >blocks and PARAMETER statements would be almost impossible, and
- >IMPLICIT none. Altough the temptation to use identifiers longer than 6
- >letters can be overwhelming, I usually don't because one system I work
- >on does not support them; same goes for use of lowercase letters.
-
- >How about you?
- >--
- >Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
-
- I would _ALWAYS_ try to use IMPLICIT NONE, if it is available on the
- compiler (though some compilers allow IMPLICIT UNDEFINED as an
- alternative). I like to have all my variables defined explicitly
- (I _HATE_ implicit typing). If this was not available, there may be
- command-line options to warn about undefined variables.
-
- INCLUDE 'file' is useful as mentioned for definitions of COMMON blocks
- and PARAMETERs. I certainly use this in several codes.
-
- I would disagree with the above about using 6-character names. I find
- that such variable names make the code very cryptic to read. This
- is a facility I would try to use on every system.
-
- I'm probably lucky in that my programs don't get ported to lots
- of different machines with their quirky compilers :-)
-
- Chris.
- --
- Dr. Chris Gatcombe
- Tessella Support Services plc, Room K1/0/31,
- 3 Vineyard Chambers, Abingdon, JET Joint European Undertaking,
- Oxfordshire OX14 3PX, UK. Abingdon, Oxfordshire OX14 3EA, UK.
- Phone: (+44) (0235) 555511 Phone: (+44) (0235) 464490
- Fax: (+44) (0235) 553301 Fax: (+44) (0235) 464766
- E-mail: gatc@tessella.co.uk E-mail: cpg@jet.uk
- gatc@tss.uucp
- - Disclaimer: Please note that the above is a personal view and should not
- be construed as an official comment from the JET project.
-