The Fortran 77 standard allows up to 20 lines (1 + 19 continuation
lines) for a statement, using columns 7 to 72. Fortran 90/95 allows 40
lines (again, 1 + 39 continuation lines), of a maximum length of 132
characters (in free format). At least one of these has to be the
continuation character '&'. Statements so long as to violate these
limits sometimes occur when you create Fortran code automatically (e.g.
with Mathematica or Maple). Some compilers allow more, but that's an
extension and not necessarily portable.
If your problem is just that Fortran 77 (or fixed form F90) lines exceed
72 characters, you have to split them up into continuation lines. Some
compilers have a flag to allow longer lines, but this is again
non-standard.
Hope this answers your question.
Cheers,
Herbert
-----Original Message-----
From: Z Zhou [mailto:[log in to unmask]]
Sent: 22 June 2004 10:44
To: [log in to unmask]
Subject: Compile Fortran 77 codes with long sentences
Dear All,
I have some Fotran 77 codes, but some sentences are much longer than 73
characters. I compiled them by both Fortran 77 and 90 compilers. But it
seems both of them can not handle those long sentences. Could you please
give me some advice about this? Thanks you very much indeed.
Cheers,
Zhongfu
This e-mail has been scanned by Trend InterScan Software.
This e-mail (and its attachment(s) if any) is intended for the named
addressee(s) only. It may
contain information which is privileged and confidential within the
meaning of the applicable law.
Unauthorised use, copying or disclosure is strictly prohibited and may
be unlawful.
If you are not the intended recipient please delete this email and
contact the sender via email return.
Fujitsu Laboratories of Europe Ltd (FLE) does not accept responsibility
for changes made to this email after
it was sent. The views expressed in this email may not necessarily be
the views held by FLE.
Unless expressly stated otherwise, this email does not form part of a
legally binding contract
or agreement between the recipient and Fujitsu Laboratories of Europe Ltd (FLE).
|